File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
3232const realm = new ShadowRealm ();
3333```
@@ -79,7 +79,7 @@ Use polyfills:
7979``` js
8080import " fetch polyfill" ;
8181import " URL polyfill" ;
82- import " shadowrealm-api/dist/polyfill.mjs " ;
82+ import " shadowrealm-api/dist/polyfill" ;
8383// Your codes
8484```
8585
Original file line number Diff line number Diff 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
3333const realm = new ShadowRealm ();
3434```
@@ -80,7 +80,7 @@ export { obj, fn };
8080``` js
8181import " fetch polyfill" ;
8282import " URL polyfill" ;
83- import " shadowrealm-api/dist/polyfill.mjs " ;
83+ import " shadowrealm-api/dist/polyfill" ;
8484// 你的代码
8585```
8686
You can’t perform that action at this time.
0 commit comments