Change8

v5.99.0

📦 webpackView on GitHub →
3 features🐛 14 fixes🔧 7 symbols

Summary

This release focuses on improving CSS and ESM library handling, fixing runtime errors in webworkers, and adding support for import.meta.url in Workers. It also includes performance optimizations for reference tracking and inline caching.

✨ New Features

  • Add dead control flow check
  • Support for new Worker(import.meta.url) and new Worker(new URL(import.meta.url)) syntax
  • Added ability to generate custom error content for generators

🐛 Bug Fixes

  • Fixed runtime error when using asset module as entrypoint and runtimeChunk
  • JSON generator now preserves __proto__ property
  • Fixed issue where entry module isn't executed when targeting webworker with a runtime chunk
  • Prevented duplication of modules with import attributes and reexport
  • Improved code generation and union of module and module ESM libraries
  • Ensured valid output path for errored asset modules
  • Removed BOM from JavaScript and CSS files when loader was not used
  • Created export for externals for module/modern-module library
  • Exported unprovided variables for commonjs-static library
  • Forwarded semicolons from meta.webpackAST
  • Fixed profiling plugin for CSS
  • Avoided extra module.export output for CSS modules
  • Fixed excessive calls of getAllReferences
  • Optimized loc for monomorphic inline caching

🔧 Affected Symbols

runtimeChunkimport.meta.urlmeta.webpackASTcache.hashAlgorithmexperiments.futureDefaultscommonjs-staticgetAllReferences