webpack is a module packer. The main goal of webpack is to package the javaScript files together, and the packaged files are used in the browser, but it is also capable of transforming, packaging (bundle) or packaging (resource or asset) .

The main updates of Webpack 5.54.0 are as follows:

Features

  • Improve constant folding to allow more && || and ?? branches to be skipped
  • Allow all hashing to be used in output.hashFunction , configure with 06157e75bb579b
  • eval is used in the module, it no longer completely jumps out of the internal graph analysis

Bug fix

  • force bump enhanced-the way to solve the error

Performance

  • Reduce the amount of allocation when creating snapshots
  • Add a wasm-based ultra-fast hash function output.hashFunction: "xxhash64"
  • Improve utf-8 conversion when serializing short strings
  • Improve the hashing performance of dependencies
  • Add experiments.cacheUnaffected , the user caches the calculation of the unchanged module and only references the unchanged module

Update instructions:​
https://github.com/webpack/webpack/releases/tag/v5.54.0


snakesss
1.1k 声望243 粉丝

SegmentFault 思否编辑,欢迎投稿优质技术资讯!