How does parallel build works? #10254
xxRockOnxx
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking into Nuxt's builder code for inspiration on how to speed up and do parallel building for our non-Nuxt project.
I saw the code for parallel runner here: https://github.com/nuxt/nuxt.js/blob/dev/packages/webpack/src/builder.js#L100
If I understand it correctly, that just runs 2 promises, but to quote the webpack docs (https://webpack.js.org/api/node/#compiler-instance) it says:
Is that not a problem? I tried it myself personally but I really didn't feel like it ran in parallel plus didn't speed things up in any way I think.
I saw the use of
thread-loaderandmemory-fsthough which I think will help me.Beta Was this translation helpful? Give feedback.
All reactions