Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 482efee

Browse filesBrowse 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 7bfc009 commit 482efee
Copy full SHA for 482efee

File tree

Expand file treeCollapse file tree

3 files changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-2
lines changed
File renamed without changes.

‎doc/manual/usage.md

Copy file name to clipboardExpand all lines: doc/manual/usage.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
The code needs a ES2015+ polyfill to work, for example
33
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
44
```js
5-
require( 'regenerator-runtime/runtime' ) ;
5+
await import( 'regenerator-runtime/runtime.js' ) ;
66
// or
77
import 'regenerator-runtime/runtime.js' ;
88
```
99

1010
Then
1111
```js
12-
const measure = require( '@comparison-sorting/specification' ) ;
12+
const measure = await import( '@comparison-sorting/specification' ) ;
1313
// or
1414
import measure from '@comparison-sorting/specification' ;
1515
```

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"specification"
2121
],
2222
"sideEffects": false,
23+
"type": "module",
2324
"source": "src/index.js",
2425
"main": "dist/index.cjs",
2526
"module": "dist/index.module.js",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.