Skip to content

Commit f1b5cec

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

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

1313
Then, import the library where needed
1414
```js
15-
const poset = require( '@partial-order/poset' ) ;
15+
const poset = await import( '@partial-order/poset' ) ;
1616
// or
1717
import * as poset from '@partial-order/poset' ;
1818
```

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"template"
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)