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 6880f9d commit 3edf19bCopy full SHA for 3edf19b
.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 knapsack = require( '@problem-solving/knapsack' ) ;
+const knapsack = await import( '@problem-solving/knapsack' ) ;
16
17
import * as knapsack from '@problem-solving/knapsack' ;
18
package.json
@@ -32,6 +32,7 @@
32
"the"
33
],
34
"sideEffects": false,
35
+ "type": "module",
36
"source": "src/index.js",
37
"main": "dist/index.cjs",
38
"module": "dist/index.module.js",
0 commit comments