Skip to content

Commit

Permalink
🤖 config(build): Set type to module in package.json.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Jul 14, 2021
1 parent 1832a59 commit adb439a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/manual/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Import the library where needed
```js
const {consume, exhaust} = require( '@iterable-iterator/consume' ) ;
const {consume, exhaust} = await import( '@iterable-iterator/consume' ) ;
// or
import {consume, exhaust} from '@iterable-iterator/consume' ;
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"iterator"
],
"sideEffects": false,
"type": "module",
"source": "src/index.js",
"main": "dist/index.cjs",
"module": "dist/index.module.js",
Expand Down

0 comments on commit adb439a

Please sign in to comment.