We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19d0c06 commit 2149c1dCopy full SHA for 2149c1d
.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 reversed = require( '@iterable-iterator/reversed' ) ;
+const reversed = await import( '@iterable-iterator/reversed' ) ;
17
18
import * as reversed from '@iterable-iterator/reversed' ;
19
package.json
@@ -20,6 +20,7 @@
20
"reversed"
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