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 nCombinations = require ( ' @combinatorics/n-combinations' ) ;
16+ const nCombinations = await import ( ' @combinatorics/n-combinations' ) ;
1717// or
1818import * as nCombinations from ' @combinatorics/n-combinations' ;
1919```
Original file line number Diff line number Diff line change 2121 " subset"
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