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 33The code needs a ES2015+ polyfill to work, for example
44[ regenerator-runtime/runtime] ( https://babeljs.io/docs/usage/polyfill ) .
55``` js
6- require ( ' regenerator-runtime/runtime' ) ;
6+ await import ( ' regenerator-runtime/runtime.js ' ) ;
77// or
88import ' regenerator-runtime/runtime.js' ;
99```
1010
1111Then
1212``` js
13- const permutation = require ( ' @combinatorics/permutation' ) ;
13+ const permutation = await import ( ' @combinatorics/permutation' ) ;
1414// or
1515import * as permutation from ' @combinatorics/permutation' ;
1616```
Original file line number Diff line number Diff line change 2020 " permutation"
2121 ],
2222 "sideEffects" : false ,
23+ "type" : " module" ,
2324 "source" : " src/index.js" ,
2425 "main" : " dist/index.cjs" ,
2526 "module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments