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
Upgrade babel #4814
Upgrade babel #4814
Conversation
This is where our 5% increase comes from! |
Try adding version: require('@babel/runtime/package.json').version here Lines 10 to 13 in ab6172f
|
Don't know if this will reduce the bundle size but you can also add corejs: require('core-js/package.json').version here Lines 49 to 56 in ab6172f
Looking at https://babeljs.io/docs/en/babel-preset-react you can remove corejs from here Line 58 in ab6172f
|
Nope, looks like that didn't help. |
Comparing the sources, it looks like after upgrading babel we're no longer transpiling to latest-browser-supported features. It's going all the way back to es5 - no arrow functions, etc. |
Filed babel/babel#10945 - I dug through the babel-preset-env code but I don't see where it could be going wrong in understanding our babel-preset-env query. |
we can temporarily add |
@delphiactual I have a more comprehensive fix in #4839. |
No description provided.