v5.62.0
版本发布时间: 2021-11-05 22:56:52
webpack/webpack最新发布版本:v5.96.1(2024-11-01 19:01:35)
Features
- add options to configure export presence checking
-
parser.javascript.reexportExportsPresence: false
allows to disable warnings for non-existing exports during the migration fromexport ... from "..."
toexport type ... from "..."
for type reexports in TypeScript
-
- add
experiments.backCompat: false
to disable some expensive deprecations for better performance
Bugfixes
- use
['catch']
instead of.catch
for better ES3 support - fix removed parentheses when using
new (require("...")).Something()
- fix
{ require }
object literals -
splitChunks.chunks
option is now correctly used forsplitChunks.fallbackCacheGroup.maxSize
too - fix schema of
listen
option, allow to omitport
- add better support for Promises from different isolates
Developer Experience
- add typings for the webpack API that is available within modules
- use
/// <reference types="webpack/module" />
to use the typings in typescript modules - or
"types": [..., "webpack/module"]
in tsconfig
- use