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 5
5
6
6
First, require the polyfill at the entry point of your application
7
7
``` js
8
- require ( ' regenerator-runtime/runtime' );
8
+ await import ( ' regenerator-runtime/runtime.js ' );
9
9
// or
10
10
import ' regenerator-runtime/runtime.js' ;
11
11
```
12
12
13
13
Then
14
14
``` js
15
- const fingertree = require ( ' @functional-data-structure/finger-tree' ) ;
15
+ const fingertree = await import ( ' @functional-data-structure/finger-tree' ) ;
16
16
// or
17
17
import fingertree from ' @functional-data-structure/finger-tree' ;
18
18
```
Original file line number Diff line number Diff line change 24
24
" tree"
25
25
],
26
26
"sideEffects" : false ,
27
+ "type" : " module" ,
27
28
"source" : " src/index.js" ,
28
29
"main" : " dist/index.cjs" ,
29
30
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments