Skip to content

Commit

Permalink
🤖 chore: Use regenerator-runtime instead of @babel/polyfill.
Browse files Browse the repository at this point in the history
Replace all references to @babel/polyfill by references to regenerator-runtime/runtime.

These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/aureooms/rejuvenate/blob/17001e676fa44361155baf8a8e44894908dd6c6d/src/transforms/replace-scoped-babel-polyfill-with-regenerator-runtime.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Mar 18, 2021
1 parent 23c749b commit 868dbc3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
6 changes: 3 additions & 3 deletions doc/manual/usage.md
@@ -1,11 +1,11 @@
# Usage

The code needs a ES2015+ polyfill to work, for example
[@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
```js
require( '@babel/polyfill' ) ;
require( 'regenerator-runtime/runtime' ) ;
// or
import '@babel/polyfill' ;
import 'regenerator-runtime/runtime' ;
```

Then
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -57,7 +57,6 @@
"devDependencies": {
"@aureooms/js-itertools": "5.0.1",
"@babel/core": "7.13.10",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.13.10",
"@babel/register": "7.13.8",
"@commitlint/cli": "12.0.1",
Expand All @@ -78,14 +77,15 @@
"np": "7.4.0",
"pinst": "2.1.6",
"power-assert": "1.6.1",
"regenerator-runtime": "0.13.7",
"xo": "0.38.2"
},
"ava": {
"files": [
"test/src/**/*"
],
"require": [
"@babel/polyfill",
"regenerator-runtime/runtime",
"@babel/register"
],
"timeout": "1m"
Expand Down
15 changes: 6 additions & 9 deletions yarn.lock
Expand Up @@ -980,14 +980,6 @@
"@babel/helper-create-regexp-features-plugin" "^7.12.13"
"@babel/helper-plugin-utils" "^7.12.13"

"@babel/polyfill@7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.12.1.tgz#1f2d6371d1261bbd961f3c5d5909150e12d0bd96"
integrity sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"

"@babel/preset-env@7.13.10", "@babel/preset-env@^7.12.11":
version "7.13.10"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.13.10.tgz#b5cde31d5fe77ab2a6ab3d453b59041a1b3a5252"
Expand Down Expand Up @@ -3191,7 +3183,7 @@ core-js@^2.0.0:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==

core-js@^2.4.0, core-js@^2.6.5:
core-js@^2.4.0:
version "2.6.11"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==
Expand Down Expand Up @@ -8586,6 +8578,11 @@ regenerate@^1.4.0:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.1.tgz#cad92ad8e6b591773485fbe05a485caf4f457e6f"
integrity sha512-j2+C8+NtXQgEKWk49MMP5P/u2GhnahTtVkRIHr5R5lVRlbKvmQ+oS+A5aLKWp2ma5VkT8sh6v+v4hbH0YHR66A==

regenerator-runtime@0.13.7:
version "0.13.7"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==

regenerator-runtime@^0.11.0:
version "0.11.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
Expand Down

0 comments on commit 868dbc3

Please sign in to comment.