Skip to content

Commit 3df0a7c

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

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

File renamed without changes.

doc/manual/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
The code needs a ES2015+ polyfill to work, for example
44
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
55
```js
6-
require( 'regenerator-runtime/runtime' ) ;
6+
await import( 'regenerator-runtime/runtime.js' ) ;
77
// or
88
import 'regenerator-runtime/runtime.js' ;
99
```
1010

1111
Then
1212
```js
13-
const uint32 = require( '@arithmetic-type/uint32' ) ;
13+
const uint32 = await import( '@arithmetic-type/uint32' ) ;
1414
// or
1515
import * as uint32 from '@arithmetic-type/uint32' ;
1616
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"unsigned"
2323
],
2424
"sideEffects": false,
25+
"type": "module",
2526
"source": "src/index.js",
2627
"main": "dist/index.cjs",
2728
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)