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 closure = require ( ' @set-theory/closure' ) ;
16
+ const closure = await import ( ' @set-theory/closure' ) ;
17
17
// or
18
18
import * as closure from ' @set-theory/closure' ;
19
19
```
Original file line number Diff line number Diff line change 20
20
" theory"
21
21
],
22
22
"sideEffects" : false ,
23
+ "type" : " module" ,
23
24
"source" : " src/index.js" ,
24
25
"main" : " dist/index.cjs" ,
25
26
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments