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 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 {mincut } = require ( ' @aureooms/js-mincut' ) ;
13
+ const {mincut } = await import ( ' @aureooms/js-mincut' ) ;
14
14
// or
15
15
import {mincut } from ' @aureooms/js-mincut' ;
16
16
```
Original file line number Diff line number Diff line change 19
19
" minimum"
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