Merge pull request #16500 from Jack-Works/avoid-cross-realm-object
refactor: avoid cross-realm objects
Merge pull request #16491 from lvivski/main
Refactor: Initialize hash conditionally in RealContentHashPlugin
Serialize code generator data to support generated assets
AssetGenerator calls out in a TODO-comment that the filename, assetInfo, and fullContentHash values must be captured in the 'data' object that's populated during code generation in order to be accessible in the AssetModulesPlugin. It notes that it must store them in the code generation results because it will be cached, but that appears to be incorrect as data is a simple Map that's instantiated within the NormalModule and not captured anywhere that would be cached. As a result, configurations that use the asset/resource type and make changes to assets between cached builds will result in a runtime error as Webpack is able to access the file from cache but isn't able to access the expected values from the data object. This solution captures the data object as a property of the NormalModule and hooks in to the existing serialize/deserialize functionality in order to make this value available across cached builds.
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.
Merge pull request #16614 from jakebailey/html5-logo
Fix HTML5 logo in README
Merge pull request #16613 from jakebailey/ts-logo
Replace TypeScript logo in README
Merge pull request #16446 from akhilgkrishnan/patch-1
Bump the loader-utils version to 2.0.3
Merge pull request #16703 from ryanwilsonperkin/ryanwilsonperkin/fix-…
…16160 Serialize generatedCode info to fix bug in asset module cache restoration
Merge pull request #16493 from piwysocki/patch-1
ci: test workflow - bump actions/cache
Merge pull request #16759 from ryanwilsonperkin/real-content-hash-reg…
…ex-perf Improve performance of hashRegExp lookup
Merge pull request #16781 from askoufis/loader-context-target-type
feat: Add `target` to `LoaderContext` type