-
I updated Gatsby from v2.24.0 to v3.5.0. Re-building development bundle task went from:
to
Also, and maybe related, starting the project takes a lot of time:
Packages in use:
Due to private project, I can't provide a reproduction. Are there ways for me to debug the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Can you enable the webpack 5 got on the "cold" build (without cache) slower from 4 => 5. With that flag we activated its cache (and plan to ship it for everyone eventually ofc) |
Beta Was this translation helpful? Give feedback.
-
Ok, I figured it out. Like I suspected earlier, dependencies installed from workspaces go through babel-loader, maybe because they aren't physically inside node_modules but symlinks. I added my custom exclude for js loaders and re-builds are now just a couple of seconds, which I can live with.
|
Beta Was this translation helpful? Give feedback.
Ok, I figured it out. Like I suspected earlier, dependencies installed from workspaces go through babel-loader, maybe because they aren't physically inside node_modules but symlinks. I added my custom exclude for js loaders and re-builds are now just a couple of seconds, which I can live with.