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 3954fdc commit 4515affCopy full SHA for 4515aff
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -3,14 +3,14 @@
3
The code needs a ES2015+ polyfill to work, for example
4
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
5
```js
6
-require( 'regenerator-runtime/runtime' ) ;
+await import( 'regenerator-runtime/runtime.js' ) ;
7
// or
8
import 'regenerator-runtime/runtime.js' ;
9
```
10
11
Then
12
13
-const spec = require( '@heap-data-structure/specification' ) ;
+const spec = await import( '@heap-data-structure/specification' ) ;
14
15
import * as spec from '@heap-data-structure/specification' ;
16
package.json
@@ -21,6 +21,7 @@
21
"spec"
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