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 6325514 commit 3f4ad6fCopy full SHA for 3f4ad6f
.commitlintrc.js renamed to .commitlintrc.cjs
doc/manual/usage.md
@@ -5,14 +5,14 @@
5
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
6
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 { ... } = require( '@randomized/random' ) ;
+const { ... } = await import( '@randomized/random' ) ;
16
17
import { ... } from '@randomized/random' ;
18
package.json
@@ -23,6 +23,7 @@
23
"shuffle"
24
],
25
"sideEffects": false,
26
+ "type": "module",
27
"source": "src/index.js",
28
"main": "dist/index.cjs",
29
"module": "dist/index.module.js",
0 commit comments