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/a5a57b70ac6fd6fb77fdab32e6b7be7519ce9564/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 17, 2021
1 parent 19d9c9d commit 7a069d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions doc/manual/usage.md
Expand Up @@ -2,9 +2,9 @@

First, require the polyfill at the entry point of your application
```js
require( '@babel/polyfill' ) ;
require( 'regenerator-runtime/runtime' ) ;
// or
import '@babel/polyfill' ;
import 'regenerator-runtime/runtime' ;
```

Then, import the library where needed
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -65,7 +65,6 @@
"dependencies": {},
"devDependencies": {
"@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 @@ -86,14 +85,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 @@ -960,14 +960,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 @@ -3171,7 +3163,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 @@ -8588,6 +8580,11 @@ regenerate@^1.4.0:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11"
integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==

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 7a069d5

Please sign in to comment.