Features
- Data Uri are now supported
application/json
,text/javascript
,application/javascript
,application/node
,application/wasm
are supported by default as mimetype- added
Rule.mimetype
to match mimetype in rules
- [Node Chunk Loading] support runtime and entries being in different chunks (e. g. with runtimeChunk single)
- [splitChunks] defaults for
splitChunks.maxAsyncRequests
andsplitChunks.maxInitialRequests
has been increased to 30
Bugfixes
- [Chunk Loading] fix a race condition with chunk loading with multiple webpack builds on a single page with overlapping chunk ids (since beta.18)
data-webpack
has now aoutput.uniqueName
+":"
prefixdata-webpack
is not used when nooutput.uniqueName
is specified
- [HMR] callback function in
module.hot.accept
is now parsed - [splitChunks.maxSize] chunks are not unnecessary renamed when not splitted at all
- [splitChunks.maxSize] no longer generates filenames that only differ in casing
- [Module Federation] providing modules now also works in incremental builds
- [Normalization]
stats: true
now normalizes tostats: { preset: "normal" }
- [Stats] fixed as incorrectly inserted new line in the assets table
- [Jsonp Chunk Loading] fix a problem with non-js chunk in the entrypoint
Changes
- rename
output.jsonpScriptType
tooutput.scriptType
as it's now also used for other things than jsonp (e. g. script externals)
Performance
- improvements in SplitChunksPlugin
Contributing
- yarn lockfile is now deduplicated and checked by CI