3 ms·
webpack is great. HMR and code-splitting are killer features. Only thing that I'm worried about is tree shaking. There are a couple of long standing issues abou
by mstijak 10y ago
webpack is great. HMR and code-splitting are killer features. Only thing that I'm worried about is tree shaking. There are a couple of long standing issues about problems with classes and export all statements. Rollup is missing code-spliting, webpack doesn't do tree shaking well and complains about bundle sizes. Not sure what to do. If somehow rollup could be integrated, that would be perfect.
- thelarkinn 10y agoWe are really excited to work with Rich Harris on adding scope inlining, (Rollup'y) features. We were waiting to release 2 first :-D
- abritinthebay 10y agoHMR & code splitting weren't even original to WebPack... where does this fiction come from that it introduced them? (Side note - I have a complex app but still get ~1sec build times, why the fuss over HMR?)
- kentor 10y agoNot having to refresh which means preserving state. If I have a modal opened and I want to make a change to the modal UI, if I refresh I would have to reopen the modal. With HMR the modal just rerenders. Also even if you have a fast build, refreshing might require refetching data from a server. In any case browserify also has HMR and it's great.