We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e14d1d7 commit d319c15Copy full SHA for d319c15
.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 convolution = require( '@iterable-iterator/convolution' ) ;
+const convolution = await import( '@iterable-iterator/convolution' ) ;
17
18
import * as convolution from '@iterable-iterator/convolution' ;
19
package.json
@@ -20,6 +20,7 @@
20
"iterator"
21
],
22
"sideEffects": false,
23
+ "type": "module",
24
"source": "src/index.js",
25
"main": "dist/index.cjs",
26
"module": "dist/index.module.js",
0 commit comments