Changelog diff from 4.0.0-alpha.0
Big features
- Upgrade uglifyjs-webpack-plugin to v1
optimization.minimize has been added to switch minimizing on/off
- By default: on in production mode, off in development mode
optimization.minimizer has been added to configurate minimizers and options
- CLI has been move to webpack-cli, you need to install
webpack-cli to use the CLI
- The ProgressPlugin (
--progress) now displays plugin names
- At least for plugins migrated to the new plugin system
Features
- Parser now understand
new Foo() expressions
- Parser can now evaluate
**, &, |, ^, >>>, >>, << and ~
Rule.ident is now allowed by schema
- constant replacements now don't need
__webpack_require__ and argument is omitted
- The concatenated module now generates a bit less code
sideEffects can be overriden via module.rules
Bugfixes
- WebAssembly modules are now correctly threaded as ESM modules and export their exports directly instead of wrapping the content in a default export
- Extensions are resolved normally in *.mjs again
Breaking changes for Plugin authors
- Methods on
Template are now static
- A new RuntimeTemplate class has been added and
outputOptions and requestShortener has been moved to this class
- Many methods has been updated to use the RuntimeTemplate instead
- We plan to move code which accesses the runtime to this new class
Module.meta has been replaced with Module.buildMeta
Module.buildInfo and Module.factoryMeta have been added
- Some properties of
Module have been moved into the new objects
Please comment if you find additional changes not in the changelog
Changelog diff from 4.0.0-alpha.0
Big features
optimization.minimizehas been added to switch minimizing on/offoptimization.minimizerhas been added to configurate minimizers and optionswebpack-clito use the CLI--progress) now displays plugin namesFeatures
new Foo()expressions**,&,|,^,>>>,>>,<<and~Rule.identis now allowed by schema__webpack_require__and argument is omittedsideEffectscan be overriden via module.rulesBugfixes
Breaking changes for Plugin authors
Templateare now staticoutputOptionsandrequestShortenerhas been moved to this classModule.metahas been replaced withModule.buildMetaModule.buildInfoandModule.factoryMetahave been addedModulehave been moved into the new objectsPlease comment if you find additional changes not in the changelog