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 number = require ( ' @data-structure/heapq' ) ;
12
+ const number = await import ( ' @data-structure/heapq' ) ;
13
13
// or
14
14
import number from ' @data-structure/heapq' ;
15
15
```
Original file line number Diff line number Diff line change 21
21
" queue"
22
22
],
23
23
"sideEffects" : false ,
24
+ "type" : " module" ,
24
25
"source" : " src/index.js" ,
25
26
"main" : " dist/index.cjs" ,
26
27
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments