-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore: upgrade core-js to version 3 #25595
Conversation
const target = resolver.ensureHook(`resolve`) | ||
const coreJsModulePath = this._coreJSNodeModulesPath | ||
|
||
function resolve( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved resolve from a class function to an inline function and everything started to work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested out my (previously failing) themes projects with the canary release and they all work in gatsby develop/build 👍
Description
Upgrade babel-preset & gatsby to core-js 3. Core-js 2 has been deprecated for a while but we never had a good story to upgrade it. Now with the polyfill work we're doing we can.
I've added a core-js resolver to make sure packages that are still compiled with core-js@2 are still working. It also makes our bundles smaller when core-js@2 is used inside the site itself.
You can test this package by installing it like this
Documentation
Nope
Related Issues
Fixes #15601
Fixes #23254
Addresses #24859