Commit Graph

8 Commits

Author SHA1 Message Date
Tobias Koppers b54f2ac65c use forEachBail from enhanced-resolve 2022-01-10 14:00:18 +01:00
Drew Anderson 9c6557e8ec Change the way the MultiItemCache iterates over items to prevent stack exhaustion when it has a large number of items.
Added unit tests for MultiItemCache behavior, including one for covering the large item count case.
2021-12-23 11:24:59 -06:00
Tobias Koppers 4a8bf4c084 allow to configure all hash functions used
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 349a5e395e avoid unnecessary MultiItemCache 2021-01-26 14:45:11 +01:00
Tobias Koppers 48ff7043f1 add provide and mergeEtags to CacheFacade 2020-08-19 11:25:24 +02:00
Tobias Koppers e16bdfda6c refactor used exports analysis, hashing, code generation, optimizations
to keep track of runtimes, used exports depending on runtime

modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00
Tobias Koppers fd9b399ae9 Create Cache facade to make it easier to use
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00