Skip to content

Commit 15e966f

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 3290990 commit 15e966f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

doc/manual/usage.md

+2-2
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 {mincut} = require( '@aureooms/js-mincut' ) ;
13+
const {mincut} = await import( '@aureooms/js-mincut' ) ;
1414
// or
1515
import {mincut} from '@aureooms/js-mincut' ;
1616
```

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"minimum"
2020
],
2121
"sideEffects": false,
22+
"type": "module",
2223
"source": "src/index.js",
2324
"main": "dist/index.cjs",
2425
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)