File tree 3 files changed +3
-2
lines changed 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 permutation = require ( ' @combinatorics/permutation' ) ;
13
+ const permutation = await import ( ' @combinatorics/permutation' ) ;
14
14
// or
15
15
import * as permutation from ' @combinatorics/permutation' ;
16
16
```
Original file line number Diff line number Diff line change 20
20
" permutation"
21
21
],
22
22
"sideEffects" : false ,
23
+ "type" : " module" ,
23
24
"source" : " src/index.js" ,
24
25
"main" : " dist/index.cjs" ,
25
26
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments