Skip to content

Commit d319c15

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 e14d1d7 commit d319c15

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
@@ -6,14 +6,14 @@
66
77
First, require the polyfill at the entry point of your application
88
```js
9-
require( 'regenerator-runtime/runtime' ) ;
9+
await import( 'regenerator-runtime/runtime.js' ) ;
1010
// or
1111
import 'regenerator-runtime/runtime.js' ;
1212
```
1313

1414
Then, import the library where needed
1515
```js
16-
const convolution = require( '@iterable-iterator/convolution' ) ;
16+
const convolution = await import( '@iterable-iterator/convolution' ) ;
1717
// or
1818
import * as convolution from '@iterable-iterator/convolution' ;
1919
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"iterator"
2121
],
2222
"sideEffects": false,
23+
"type": "module",
2324
"source": "src/index.js",
2425
"main": "dist/index.cjs",
2526
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)