Skip to content

Commit 81bdf27

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/31b7e48f29789fa2e2ad9e16013ff277c3bbca57/src/transforms/package.json:set-type-module.js Please contact the author of the transform if you believe there was an error.
1 parent 59ee7f4 commit 81bdf27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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 mm = require( '@graph-algorithm/maximum-matching' ) ;
15+
const mm = await import( '@graph-algorithm/maximum-matching' ) ;
1616
// or
1717
import * as mm from '@graph-algorithm/maximum-matching' ;
1818
```

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"maximum"
2121
],
2222
"sideEffects": false,
23+
"type": "module",
2324
"source": "src/index.js",
2425
"main": "dist/default/index.js",
2526
"module": "dist/module/index.js",

0 commit comments

Comments
 (0)