Features
- Added
DotenvPluginand top leveldotenvoption to enable this plugin - Added
WebpackManifestPlugin - Added support the
ignoreListoption in devtool plugins - Allow to use custom javascript parse function
- Added
import.meta.envsupport for environment variables - Added support for
import.meta.dirnameandimport.meta.filename - Added support
import.defer()for statistical path - Handle import.meta.main
- Added suport to setup named exports for JSON modules and disable usage named export for
import file from "./file.json" with { type: "json" } - Added support
__dirname/__filename/import.meta.dirname/import.meta.filenamefor universal target - [CSS] Added the
exportTypeoption withlink(by default), "text" andcss-style-sheetvalues - [CSS] Added support for
composesproperties
Fixes
- The
dependOnchunk must be loaded before the common chunk - Return to namespace import when the external request includes a specific export
- No runtime extra runtime code for module libraries
- Delay HMR accept dependencies to preserve import attributes
- Properly handle external presets for universal target
- Fixed incorrect identifier of import binding for module externals
- Fixed when defer import and dynamic default export mixed
- Reduce generated output when
globalThissupported - Fixed loading async modules in defer import
- Reexport module for default import when no used exports for systemjs library
- Rename HarmonyExportDependencyParserPlugin exported id to CompatibilityPlugin tagged id
- Handle
__dirnameand__filenamefor ES modules - Rename single nested
__webpack_export__and__webpack_require__in already bundled code - [Types] webpack function type
- [Types] NormalModule type
- [Types] Multi compiler configuration type
- [Types] Fixed regression in custom
hashDigesttype - [CSS] No extra runtime for initial chunk
- [CSS] Fixed a lot of CSS modules bugs