We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 691698f commit fdb0d37Copy full SHA for fdb0d37
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -5,14 +5,14 @@
5
6
First, require the polyfill at the entry point of your application
7
```js
8
-require( 'regenerator-runtime/runtime' );
+await import( 'regenerator-runtime/runtime.js' );
9
// or
10
import 'regenerator-runtime/runtime.js' ;
11
```
12
13
Then, import the library where needed
14
15
-const setpartition = require( '@combinatorics/set-partition' ) ;
+const setpartition = await import( '@combinatorics/set-partition' ) ;
16
17
import * as setpartition from '@combinatorics/set-partition' ;
18
package.json
@@ -18,6 +18,7 @@
"set"
19
],
20
"sideEffects": false,
21
+ "type": "module",
22
"source": "src/index.js",
23
"main": "dist/index.cjs",
24
"module": "dist/index.module.js",
0 commit comments