Skip to content

Commit 3f4ad6f

Browse files
🤖 config(build): Set type to module in package.json.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/042c55f2254a9efdce5074d537141d6f85a98927/src/transforms/package.json:set-type-module.js Please contact the author of the transform if you believe there was an error.
1 parent 6325514 commit 3f4ad6f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

doc/manual/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
66
77
```js
8-
require( 'regenerator-runtime/runtime' ) ;
8+
await import( 'regenerator-runtime/runtime.js' ) ;
99
// or
1010
import 'regenerator-runtime/runtime.js' ;
1111
```
1212

1313
Then
1414
```js
15-
const { ... } = require( '@randomized/random' ) ;
15+
const { ... } = await import( '@randomized/random' ) ;
1616
// or
1717
import { ... } from '@randomized/random' ;
1818
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"shuffle"
2424
],
2525
"sideEffects": false,
26+
"type": "module",
2627
"source": "src/index.js",
2728
"main": "dist/index.cjs",
2829
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)