v5.70.0
版本发布时间: 2022-03-03 22:24:13
webpack/webpack最新发布版本:v5.96.1(2024-11-01 19:01:35)
Features
- update node.js version constraints for ESM support
- add
baseUri
toentry
options to configure a static base uri (the base ofnew URL()
) - alphabetically sort exports in namespace objects when possible
- add
__webpack_exports_info__.name.canMangle
- add proxy support to
experiments.buildHttp
-
import.meta.webpackContext
as ESM alternative torequire.context
- handle multiple alternative directories (e. g. due to resolve.alias or resolve.modules) when creating an context module
Bugfixes
- fix problem when assigning
global
to a variable - fix crash when using
experiments.outputModule
andloaderContext.importModule
with multiple chunks - avoid generating progress output before the compilation has started (ProgressPlugin)
- fix handling of non-static-ESM dependencies with using TLA and HMR in the same module
- include the asset module filename in hashing
-
output.clean
will keep HMR assets for at least 10s to allow HMR to access them even when compilation is faster then the browser
Performance
- fix asset caching when using the BannerPlugin
Developer Experience
- improve typings
Contributing
- capture caching errors when running the test suite