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 66
77First, require the polyfill at the entry point of your application
88``` js
9- require ( ' regenerator-runtime/runtime' ) ;
9+ await import ( ' regenerator-runtime/runtime.js ' ) ;
1010// or
1111import ' regenerator-runtime/runtime.js' ;
1212```
1313
1414Then, import the library where needed
1515``` js
16- const fibonacciString = require ( ' @string-data-structure/fibonacci-string' ) ;
16+ const fibonacciString = await import ( ' @string-data-structure/fibonacci-string' ) ;
1717// or
1818import * as fibonacciString from ' @string-data-structure/fibonacci-string' ;
1919```
Original file line number Diff line number Diff line change 2525 " table"
2626 ],
2727 "sideEffects" : false ,
28+ "type" : " module" ,
2829 "source" : " src/index.js" ,
2930 "main" : " dist/index.cjs" ,
3031 "module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments