-
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
Making babel node_modules transpilation better #15213
Comments
Any progress on this? Transpiling As evident in other issues, build times have more than doubled as a result of this change (~5 minutes to ~12 minutes our case). In addition to higher costs for those paying by the second, we're actually seeing builds time out on Netlify occasionally. I'm happy to help given some direction. 👍 |
I'd also like an update on this. We're stuck on gatsby v2.10.5 because 2.11 "enabled babel-loader for all dependencies" which completely killed our build times. Gatsby used to build so fast. How do we opt-out of the new |
Any update or workaround? We're too stuck on Gatsby v2.10.5 |
@thomasMary this seems to be a workaround: #15190 (comment) |
I've created
|
Summary
Improve how we handle node_modules with babel.
We have a few options to explore.
We currently use our babel-preset-gatsby which does lots of things which are probably not needed on node_modules. We probably want to run babel-preset-env to make bundles compatible.
gatsby-plugin-babel-no-nodemodules
. This plugin will remove our node_modules runner from gatsby.Motivation
It seems like people are having issues with our latest Gatsby change. Transpiling node_modules with babel. It may cause slow builds or memory issues.
The text was updated successfully, but these errors were encountered: