Open TheLarkInn opened 8 years ago
@TheLarkInn Thank you very much for the feedback. Yes, it would be nice, but current solution has some limitation to be integrated to webpack core:
stats
objects produced by webpack
and webpack-cluster
are different.
@mdreizin Why not use the original stats
format?
@stereokai it uses cluster
api to compile config in separate process and data between main and child process should be serializable. Stats
object has some circular references and now they can't be deserialized as is.
It was Initially designed for mono repo when, for instance lerna
didn't exist. For now if you have many projects/packages I would recommend to use external solution for that.
But the idea of compiling each config (or array of configs) in separate process can be potentially integrated into webpack core.
It looks like you are using a lot of the core libs to perform some of this parallel functionality. Would you consider submitting a PR to webpack/webpack
If it speeds up any webpack build out of the box with out a doubt it would be great to integrate it to core like we've done with other plugins.