Skip to content

Commit c45610f

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

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

1414
Then, import the library where needed
1515
```js
16-
const fibonacciString = require( '@string-data-structure/fibonacci-string' ) ;
16+
const fibonacciString = await import( '@string-data-structure/fibonacci-string' ) ;
1717
// or
1818
import * as fibonacciString from '@string-data-structure/fibonacci-string' ;
1919
```

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"table"
2626
],
2727
"sideEffects": false,
28+
"type": "module",
2829
"source": "src/index.js",
2930
"main": "dist/index.cjs",
3031
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)