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 22The code needs a ES2015+ polyfill to work, for example
33[ regenerator-runtime/runtime] ( https://babeljs.io/docs/usage/polyfill ) .
44``` js
5- require ( ' regenerator-runtime/runtime' ) ;
5+ await import ( ' regenerator-runtime/runtime.js ' ) ;
66// or
77import ' regenerator-runtime/runtime.js' ;
88```
99
1010Then
1111``` js
12- const number = require ( ' @data-structure/heapq' ) ;
12+ const number = await import ( ' @data-structure/heapq' ) ;
1313// or
1414import number from ' @data-structure/heapq' ;
1515```
Original file line number Diff line number Diff line change 2121 " queue"
2222 ],
2323 "sideEffects" : false ,
24+ "type" : " module" ,
2425 "source" : " src/index.js" ,
2526 "main" : " dist/index.cjs" ,
2627 "module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments