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