File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 6
6
7
7
First, require the polyfill at the entry point of your application
8
8
``` js
9
- require ( ' regenerator-runtime/runtime' ) ;
9
+ await import ( ' regenerator-runtime/runtime.js ' ) ;
10
10
// or
11
11
import ' regenerator-runtime/runtime.js' ;
12
12
```
13
13
14
14
Then, import the library where needed
15
15
``` js
16
- const repeat = require ( ' @iterable-iterator/repeat' ) ;
16
+ const repeat = await import ( ' @iterable-iterator/repeat' ) ;
17
17
// or
18
18
import * as repeat from ' @iterable-iterator/repeat' ;
19
19
```
Original file line number Diff line number Diff line change 22
22
" repeat"
23
23
],
24
24
"sideEffects" : false ,
25
+ "type" : " module" ,
25
26
"source" : " src/index.js" ,
26
27
"main" : " dist/index.cjs" ,
27
28
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments