Fitbit / webpack-cluster

Helps to make parallel webpack compilation easily
https://fitbit.github.io/webpack-cluster
Apache License 2.0
32 stars 7 forks source link

Consider PR into Webpack core. #7

Open TheLarkInn opened 8 years ago

TheLarkInn commented 8 years ago

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.

mdreizin commented 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.

stereokai commented 6 years ago

@mdreizin Why not use the original stats format?

mdreizin commented 6 years ago

@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.