Skip to content

Commit 4aebc03

Browse files
authored
Merge pull request #2 from ambit-tsai/dev
docs: update README
2 parents 6d55029 + 2fb0b87 commit 4aebc03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const realm = new ShadowRealm();
2727

2828
### Po**l**yfill: patch up the global object
2929
```javascript
30-
import 'shadowrealm-api/dist/polyfill.mjs'
30+
import 'shadowrealm-api/dist/polyfill'
3131

3232
const realm = new ShadowRealm();
3333
```
@@ -79,7 +79,7 @@ Use polyfills:
7979
```js
8080
import "fetch polyfill";
8181
import "URL polyfill";
82-
import "shadowrealm-api/dist/polyfill.mjs";
82+
import "shadowrealm-api/dist/polyfill";
8383
// Your codes
8484
```
8585

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const realm = new ShadowRealm();
2828

2929
### Po**l**yfill: 修补全局对象
3030
```javascript
31-
import 'shadowrealm-api/dist/polyfill.mjs'
31+
import 'shadowrealm-api/dist/polyfill'
3232

3333
const realm = new ShadowRealm();
3434
```
@@ -80,7 +80,7 @@ export { obj, fn };
8080
```js
8181
import "fetch polyfill";
8282
import "URL polyfill";
83-
import "shadowrealm-api/dist/polyfill.mjs";
83+
import "shadowrealm-api/dist/polyfill";
8484
// 你的代码
8585
```
8686

0 commit comments

Comments
 (0)