We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3172828 commit 718fa22Copy full SHA for 718fa22
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -5,14 +5,14 @@
5
6
First, require the polyfill at the entry point of your application
7
```js
8
-require( 'regenerator-runtime/runtime' );
+await import( 'regenerator-runtime/runtime.js' );
9
// or
10
import 'regenerator-runtime/runtime.js' ;
11
```
12
13
Then, import the library where needed
14
15
-const skiplist = require( '@data-structure/skip-list' ) ;
+const skiplist = await import( '@data-structure/skip-list' ) ;
16
17
import * as skiplist from '@data-structure/skip-list' ;
18
package.json
@@ -22,6 +22,7 @@
22
"structures"
23
],
24
"sideEffects": false,
25
+ "type": "module",
26
"source": "src/index.js",
27
"main": "dist/index.cjs",
28
"module": "dist/index.module.js",
0 commit comments