Make compressing transforms cache configurable#574
Conversation
|
The question we still have is if we maybe remove the cache alltogether and instead recommend using cache-loader. Have you tried using cache-loader in front of babel-loader that should be faster than the babel cache. |
|
@danez, I didn't try it yet, but I'll try to got to that soon. I've heard Webpack 5 is going to focus on better build cache system – I wonder what are the ideas for caching transformers like Babel or TS with sourcemaps, also for BTW, I have another branch locally where I split code from maps and save both to FS (if necessary) – this way only maps need to be serialized, code goes straight to the disk. The wins are only visible for inline source maps (~5-10% IIRC) though, otherwise it performs similar, so I'm not so happy about that. I'll yet have to profile the code properly using |
60e4480 to
3f1e6a2
Compare
|
I rebased your branch over our new async-function implementation, and made 2 small changes:
|
|
Thanks! |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
What is the current behavior?
Cache compression is mandatory
What is the new behavior?
One can opt out from compressing cache using the new
cacheCompression: booleanoption.By default set to
trueso it doesn't break anything.Does this PR introduce a breaking change?
Other information:
I wrote a bit about in related issue #571