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/d6cd0d3d01916b71e965b24c5702764deb5c1cf2/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 26, 2021
1 parent f660ea8 commit f1b5cec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
First, require the polyfill at the entry point of your application
```js
require( 'regenerator-runtime/runtime' );
await import( 'regenerator-runtime/runtime.js' );
// or
import 'regenerator-runtime/runtime.js' ;
```

Then, import the library where needed
```js
const poset = require( '@partial-order/poset' ) ;
const poset = await import( '@partial-order/poset' ) ;
// or
import * as poset from '@partial-order/poset' ;
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"template"
],
"sideEffects": false,
"type": "module",
"source": "src/index.js",
"main": "dist/index.cjs",
"module": "dist/index.module.js",
Expand Down

0 comments on commit f1b5cec

Please sign in to comment.