Skip to content

Commit 4fe5315

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 62b3e52 commit 4fe5315

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
1414
```js
15-
const fingertree = require( '@functional-data-structure/finger-tree' ) ;
15+
const fingertree = await import( '@functional-data-structure/finger-tree' ) ;
1616
// or
1717
import fingertree from '@functional-data-structure/finger-tree' ;
1818
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"tree"
2525
],
2626
"sideEffects": false,
27+
"type": "module",
2728
"source": "src/index.js",
2829
"main": "dist/index.cjs",
2930
"module": "dist/index.module.js",

0 commit comments

Comments
 (0)