Skip to content

Commit 1179896

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/1b5252aec880aa76850f97b16980a6ce00c782c4/src/transforms/package.json:set-type-module.js Please contact the author of the transform if you believe there was an error.
1 parent 1666f99 commit 1179896

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
@@ -2,14 +2,14 @@
22
The code needs a ES2015+ polyfill to work, for example
33
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
44
```js
5-
require( 'regenerator-runtime/runtime' ) ;
5+
await import( 'regenerator-runtime/runtime.js' ) ;
66
// or
77
import 'regenerator-runtime/runtime.js' ;
88
```
99

1010
Then
1111
```js
12-
const number = require( '@data-structure/heapq' ) ;
12+
const number = await import( '@data-structure/heapq' ) ;
1313
// or
1414
import number from '@data-structure/heapq' ;
1515
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"queue"
2222
],
2323
"sideEffects": false,
24+
"type": "module",
2425
"source": "src/index.js",
2526
"main": "dist/index.cjs",
2627
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)