Change8

v5.100.0

📦 webpackView on GitHub →
8 features🐛 7 fixes🔧 6 symbols

Summary

This release introduces HMR support for ES modules, experimental Defer Module Evaluation, and the VirtualUrlPlugin. It also includes significant fixes for ES module chunk loading, Windows file system interactions, and TypeScript type definitions.

✨ New Features

  • HMR support for ES modules output
  • Full splitChunks support for ES module output mode (when external variables and runtimeChunk are not set)
  • Support for the 'using' keyword
  • Experimental implementation of TC39 Defer Module Evaluation
  • Support for dynamic template literals expressions in 'new URL(...)'
  • ES modules worker chunk loading for Node.js targets
  • Improved destructuring support in DefinePlugin
  • Added VirtualUrlPlugin to support 'virtual:' scheme

🐛 Bug Fixes

  • Fixed ES modules entry chunk dependency on runtime chunk hash
  • Handle function exports in webpack module wrapper
  • Ensure dependent chunks are imported before startup and fix duplicate 'default' exports
  • Generate loose closing brace when exports are unprovided
  • Prevent CleanPlugin from unlinking the same file twice
  • Fixed unexpected error codes from fs.unlink on Windows
  • Fixed TypeScript types

🔧 Affected Symbols

CleanPluginDefinePluginVirtualUrlPluginsplitChunksruntimeChunknew URL