We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3290990 commit 15e966fCopy full SHA for 15e966f
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -3,14 +3,14 @@
3
The code needs a ES2015+ polyfill to work, for example
4
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
5
```js
6
-require( 'regenerator-runtime/runtime' ) ;
+await import( 'regenerator-runtime/runtime.js' ) ;
7
// or
8
import 'regenerator-runtime/runtime.js' ;
9
```
10
11
Then
12
13
-const {mincut} = require( '@aureooms/js-mincut' ) ;
+const {mincut} = await import( '@aureooms/js-mincut' ) ;
14
15
import {mincut} from '@aureooms/js-mincut' ;
16
package.json
@@ -19,6 +19,7 @@
19
"minimum"
20
],
21
"sideEffects": false,
22
+ "type": "module",
23
"source": "src/index.js",
24
"main": "dist/index.cjs",
25
"module": "dist/index.module.js",
0 commit comments