We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 752ac9b commit 3487c50Copy full SHA for 3487c50
.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 radixsort = require( '@integer-sorting/radix-sort' ) ;
+const radixsort = await import( '@integer-sorting/radix-sort' ) ;
16
17
import * as radixsort from '@integer-sorting/radix-sort' ;
18
package.json
@@ -26,6 +26,7 @@
26
"word-ram-model"
27
],
28
"sideEffects": false,
29
+ "type": "module",
30
"source": "src/index.js",
31
"main": "dist/index.cjs",
32
"module": "dist/index.module.js",
0 commit comments