Skip to content

Commit 3edf19b

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/8134808bd3e9bcbb3e4b2ca5401e2dee58965a01/src/transforms/package.json:set-type-module.js Please contact the author of the transform if you believe there was an error.
1 parent 6880f9d commit 3edf19b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

doc/manual/usage.md

Lines changed: 2 additions & 2 deletions
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 knapsack = require( '@problem-solving/knapsack' ) ;
15+
const knapsack = await import( '@problem-solving/knapsack' ) ;
1616
// or
1717
import * as knapsack from '@problem-solving/knapsack' ;
1818
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"the"
3333
],
3434
"sideEffects": false,
35+
"type": "module",
3536
"source": "src/index.js",
3637
"main": "dist/index.cjs",
3738
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)