We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
package.json
1 parent 59ee7f4 commit 81bdf27Copy full SHA for 81bdf27
doc/manual/usage.md
@@ -5,14 +5,14 @@
5
6
First, require the polyfill at the entry point of your application
7
```js
8
-require( 'regenerator-runtime/runtime' ) ;
+await import( 'regenerator-runtime/runtime.js' ) ;
9
// or
10
import 'regenerator-runtime/runtime.js' ;
11
```
12
13
Then, import the library where needed
14
15
-const mm = require( '@graph-algorithm/maximum-matching' ) ;
+const mm = await import( '@graph-algorithm/maximum-matching' ) ;
16
17
import * as mm from '@graph-algorithm/maximum-matching' ;
18
package.json
@@ -20,6 +20,7 @@
20
"maximum"
21
],
22
"sideEffects": false,
23
+ "type": "module",
24
"source": "src/index.js",
25
"main": "dist/default/index.js",
26
"module": "dist/module/index.js",
0 commit comments