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 dfc63d8 commit ce3f7c8Copy full SHA for ce3f7c8
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -2,14 +2,14 @@
2
The code needs a ES2015+ polyfill to work, for example
3
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
4
```js
5
-require( 'regenerator-runtime/runtime' ) ;
+await import( 'regenerator-runtime/runtime.js' ) ;
6
// or
7
import 'regenerator-runtime/runtime.js' ;
8
```
9
10
Then
11
12
-const {deque} = require( '@data-structure/deque' ) ;
+const {deque} = await import( '@data-structure/deque' ) ;
13
14
import {deque} from '@data-structure/deque' ;
15
package.json
@@ -20,6 +20,7 @@
20
"js"
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