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

fix(*): enable separate config for node_modules transpilation #15270

Merged
merged 8 commits into from
Jul 1, 2019

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jul 1, 2019

Description

Implements point 1 & 2 from #15213. Mostly stolen from create-react-app.

We revert the changes done by #14111 in the js loader and create a new loader called dependencies to do specific work on node_modules.

Inside the dependencies loader, we set every optimisation to false. We also disable sourcemap generation as this might fail on big files (ex #15190).

It's not really much faster.

site before node transpilation after node transpilation This PR
gatsbyjs.org 88.907s 110s 91.936s
moonmeister.net 55.749s 82s 57.216s
default-starter 9.444s 13s 13s

More PRs will follow to speedup webpack build time. Sadly most of these PRs will only work on next build.

Related Issues

Fixes #15190
Fixes #15183
Fixes #15207

@wardpeet wardpeet requested a review from a team as a code owner July 1, 2019 10:57
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

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