Skip to content

@babel/polyfill deprecated since babel v7.4.0 #2081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
0xdevalias opened this issue May 2, 2019 · 2 comments
Closed

@babel/polyfill deprecated since babel v7.4.0 #2081

0xdevalias opened this issue May 2, 2019 · 2 comments

Comments

@0xdevalias
Copy link
Contributor

0xdevalias commented May 2, 2019

https://babeljs.io/docs/en/next/babel-polyfill

As of Babel 7.4.0, this package has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features) and regenerator-runtime/runtime (needed to use transpiled generator functions)

In our project we have already moved to this new recommended method, but webpacker is causing us to pull down @babel/polyfill still.

It would be cool to somehow remove the direct dependency on @babel/polyfill so we can use our own.

It's included here: https://github.com/rails/webpacker/blob/master/package.json#L22

@0xdevalias 0xdevalias changed the title Make @babel/polyfill a peerDependency / remove it? @babel/polyfill deprecated since babel v7.4.0 May 2, 2019
@jakeNiemiec
Copy link
Member

Also see: #2031

@aried3r
Copy link
Contributor

aried3r commented Jun 3, 2019

Can this be closed? Ping @gauravtiwari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants