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 6
6
7
7
First, require the polyfill at the entry point of your application
8
8
``` js
9
- require ( ' regenerator-runtime/runtime' ) ;
9
+ await import ( ' regenerator-runtime/runtime.js ' ) ;
10
10
// or
11
11
import ' regenerator-runtime/runtime.js' ;
12
12
```
13
13
14
14
Then, import the library where needed
15
15
``` js
16
- const nPermutations = require ( ' @combinatorics/n-permutations' ) ;
16
+ const nPermutations = await import ( ' @combinatorics/n-permutations' ) ;
17
17
// or
18
18
import * as nPermutations from ' @combinatorics/n-permutations' ;
19
19
```
Original file line number Diff line number Diff line change 19
19
" set"
20
20
],
21
21
"sideEffects" : false ,
22
+ "type" : " module" ,
22
23
"source" : " src/index.js" ,
23
24
"main" : " dist/index.cjs" ,
24
25
"module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments