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 1666f99 commit 1179896Copy full SHA for 1179896
.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 number = require( '@data-structure/heapq' ) ;
+const number = await import( '@data-structure/heapq' ) ;
13
14
import number from '@data-structure/heapq' ;
15
package.json
@@ -21,6 +21,7 @@
21
"queue"
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