Commit Graph

26 Commits

Author SHA1 Message Date
alexander-akait a1df00d339 refactor: improve eslint configuration and better types 2025-03-12 04:56:14 +03:00
alexander.akait 0d5476df4f fix: types 2024-10-24 17:09:39 +03:00
alexander.akait 93743d233a refactor: code 2024-08-02 19:32:31 +03:00
alexander.akait 9943f3506a style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait b9d9a5d9ff style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait a592b62686 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 423e89b2c7 style: improve style of code 2024-08-02 19:32:13 +03:00
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait ab47c696a4 refactor(types): more 2023-06-03 20:52:25 +03:00
alexander.akait 02590bfdc7 chore: improve types 2023-04-21 19:22:33 +03:00
Ryan Wilson-Perkin 52b1b0e4ad
Revert "Improve performance of hashRegExp lookup" 2023-03-10 10:04:26 -05:00
Sean Larkin 710eaf4dda
Merge pull request #16789 from dmichon-msft/contenthash-hashsalt
Respect output.hashSalt in RealContentHashPlugin
2023-03-08 10:59:00 -08:00
David Michon 07283fabc4 Respect output.hashSalt in RealContentHashPlugin
Fix #16788

Update RealContentHashPlugin to initialize hash instances with
the value of `output.hashSalt`, if provided.
2023-03-07 16:15:36 -08:00
Ryan Wilson-Perkin cfdb1dfe59
Improve performance of hashRegExp lookup
For applications with a very large number of assets, the cost of
invoking a single regular expression with many many values in a group
becomes very high.

By changing to a list of regular expressions (with helper methods for
maintaining the original design) we can get a large performance
improvement.
2023-02-24 16:17:15 -05:00
Yehor Lvivski d4b1d69ef0 Initialize hash conditionally 2022-11-19 12:48:50 +01:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 70376ad4ec fix problem where emitting an asset twice affects the hash 2021-03-01 09:51:46 +01:00
Tobias Koppers ed742e071b add test case like html-plugin 2020-11-26 14:00:21 +01:00
Tobias Koppers ccfe01aab4 allow to process assets that are added during processAssets
fix and add processAsset stages

allow to hook into RealContentHashPlugin for custom hashing
2020-11-26 14:00:21 +01:00
Tobias Koppers 84b196d32d emit error instead of crashing when unexpected problem occurs 2020-10-09 09:14:34 +02:00
Tobias Koppers e0b10e9935 fix caching bug in RealContentHashPlugin 2020-09-16 11:12:41 +02:00
Tobias Koppers 49a28a73cf accept Source-like objects in assets and cache sources for RealContentHashPlugin 2020-08-20 09:54:59 +02:00
Tobias Koppers b13fe97801 fix edgecase without any hash used 2020-08-19 11:37:17 +02:00
Tobias Koppers e3fcabd6f6 add caching to RealContentHashPlugin 2020-08-19 11:25:53 +02:00
Tobias Koppers 2748077a4d bugfixes 2020-08-19 09:46:41 +02:00
Tobias Koppers b929d4cdce calculate real content hash for assets after asset processing 2020-08-18 22:07:24 +02:00