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