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 2
2
The code needs a ES2015+ polyfill to work, for example
3
3
[ regenerator-runtime/runtime] ( https://babeljs.io/docs/usage/polyfill ) .
4
4
``` js
5
- require ( ' regenerator-runtime/runtime' ) ;
5
+ await import ( ' regenerator-runtime/runtime.js ' ) ;
6
6
// or
7
7
import ' regenerator-runtime/runtime.js' ;
8
8
```
9
9
10
10
Then
11
11
``` js
12
- const {deque } = require ( ' @data-structure/deque' ) ;
12
+ const {deque } = await import ( ' @data-structure/deque' ) ;
13
13
// or
14
14
import {deque } from ' @data-structure/deque' ;
15
15
```
Original file line number Diff line number Diff line change 20
20
" js"
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