Releases: webpack/webpack
Releases · webpack/webpack
v2.3.0
Features:
- add
extensionsoption to DllReferencePlugin - add
warningsFilterto UglifyJsPlugin to hide warnings selectively - add
extractCommentsto UglifyJsPlugin to move kept comments into separate file (i. e. LICENSE file) - validate relative and absolute paths in configuration
- validate stats options
- allow to match on
compiler(namein configuration) in rules- i. e. allows to specify different rules for
extract-text-webpack-pluginorhtml-webpack-plugin
- i. e. allows to specify different rules for
- Allow to pass multiple entries via CLI
- Performance improvements
- CommonsChunkPlugin give errors on incorrect options
- add
module.strictExportPresenceto make missing export an error instead of warning - Compiler emits
watch-closeevent when the watcher is closed - Allow additional compress options in UglifyJsPlugin
- empty chunk numbers are not flags in every chunk, this improves caching invalidation
Bugfixes:
- OccurrenceOrderPlugin now counts occurrences correctly
- Fix cheap-source-maps when combined with ES Modules (lines were offset)
- Watcher now detects file deleting correctly
- Resolve output path if relative output path is given via CLI
- Handle stack traces in errors correctly
- Some usages of
Systemnow generate valid code i. e.System.global - Dynamic property names are now parsed and can contain webpack stuff (i. e. imports)
- Empty enviroment variables are now supported in the
EnvironmentPlugin - (Maybe) Fixes chunk loading in IE when script is cached
Notes
The validation now fails when passing absolute paths with lowercase drive letter on windows.
(i. e. c:\work\stuff instead of C:\work\stuff)
Lowercase drive letters will cause weird errors (node.js behavior is inconsistent about drive letter casing) in some cases.
So please fix the paths in your shell resp. your tooling and always call webpack with uppercase drive letter. Don't use lowercase drive letters.
v2.2.1
v2.2.0
v2.2.0-rc.7
Bugfixes:
- fix watch flag in config with multiple configs
- hoist
export * fromcorrectly to prevent use before define bug
Optimization:
- remove some properties which are set to the default value
v2.2.0-rc.6
Bugfixes:
- It's now possible to use var injections (i. e. global, ProvidePlugin) in ESM
v2.2.0-rc.5
Breaking change:
- Reverted breaking change from last version
- In ES module (
importorexportexists in module):exportsis undefineddefineis undefinedmodule.exportsis read-only and undefined
Bugfixes:
statsare no longer ignored when using the CLIengineexcludes now correctly node.js 5export defaultnow inserts the semicolon at the correct position
v2.2.0-rc.4
Node.js dropped support for 0.12, so we do.
Breaking changes:
- Using CommonJS or AMD export stuff in a ES2015 module will emit errors.
Usablility:
- performance hints are off by default. It was too annoying, but you can still see the
[big]flag by default.
Bugfixes:
- webpack now exits with non-zero exit code when configuration
Promiseis rejected.
Features:
- ProvidePlugin supports passing array to access members of a module
- renamed NoErrorsPlugin to NoEmitOnErrorsPlugin, NoErrorsPlugin is still working but is deprecated
Development:
- Migrated many internal classes to ES2015
- improved tests, linting and CI
- added testcases for CLI
Final Release
This is probably the last RC. We released it as final test.
If no critial bugs are discovered, we release 2.2.0 in < 10 days.
v2.2.0-rc.3
Bugfixes:
- fixes chunk loading in old IEs
- fixes error which prevented using arrow functions in
require.ensure(ccfc608) - fixes bug when passing function to rules.use (44baa7c)
- fixes bug for
--progressoutput (0636e7c) - fixes bug with
export *and non-harmony modules (ee3d53c) - fixes bug when removing assets from the compilation (cb4c209)
v2.2.0-rc.2
Features:
- Stats output now disables only 15 modules by default (see new option
stats.maxModules,--display-max-modules) - Stats for modules now includes a
depthfor modules which is the distance to the entry point. - add
--display-depthfor CLI to display the module depth in stats
Bugfixes:
- Cached modules now correctly reset meta information
- arrow functions in
require.ensurenow work correctly
v2.2.0-rc.1
Bugfixes:
- webpack was not able to recover after an error in a file occured in watch mode
- It was not possible to set UglifyJs
screw_ie8option