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 62b3e52 commit 4fe5315Copy full SHA for 4fe5315
.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
14
15
-const fingertree = require( '@functional-data-structure/finger-tree' ) ;
+const fingertree = await import( '@functional-data-structure/finger-tree' ) ;
16
17
import fingertree from '@functional-data-structure/finger-tree' ;
18
package.json
@@ -24,6 +24,7 @@
24
"tree"
25
],
26
"sideEffects": false,
27
+ "type": "module",
28
"source": "src/index.js",
29
"main": "dist/index.cjs",
30
"module": "dist/index.module.js",
0 commit comments