Fixes
- Fixed the case where an ES modules entry chunk depends on the runtime chunk hash
- Handle function exports in webpack module wrapper
- Ensure dependent chunks are imported before startup & fix duplicate export of 'default'
- Generate lose closing brace when exports are unprovided
- CleanPlugin doesn't unlink same file twice
- Fixed unexpected error codes from fs.unlink on Windows
- Typescript types
Features
- HMR support for ES modules output
- ES module output mode now fully supports
splitChunks
when external variables and runtimeChunk are not set. - Added support
using
keyword - Implemented tc39 Defer Module Evaluation (experiment)
- Support dynamic template literals expressions for
new URL(...)
- Enable ES modules worker chunk loading for Node.js targets
- Improved support for destructing in DefinePlugin
- Added VirtualUrlPlugin to support
virtual:
modules
Performance Improvements
- Remove useless startup entrypoint runtime for ES modules output
- Cache
new URL(...)
evaluate expression