Skip to content
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

@babel/polyfill has been deprecated #24629

Closed
dandv opened this issue May 29, 2020 · 1 comment
Closed

@babel/polyfill has been deprecated #24629

dandv opened this issue May 29, 2020 · 1 comment
Labels
type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement.

Comments

@dandv
Copy link
Contributor

dandv commented May 29, 2020

Summary

Installing gatsby produces a number of npm warnings about deprecated packages. While hunting down one of them, I noticed that gatsby depends on @babel/polyfill, which has been deprecated.

In turn, @babel/polyfill depends on core-js@2, which has been deprecated and generates this warning when installing any Gatsby project:

$ npm install
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

Motivation

Many users are confused by NPM warnings about deprecated packages:

@dandv dandv added the type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement. label May 29, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 29, 2020
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 2, 2020
@LekoArts
Copy link
Contributor

LekoArts commented Jun 2, 2020

Thank you for opening this!

The core-js topic is known to us and tracked here: #15601

In turn of this we'll also get rid of e.g. @babel/polyfill, possibly sooner than in a next major version. We're working on this.

We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby!

@LekoArts LekoArts closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants