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