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