Skip to content

Releases: webpack/webpack

v2.3.0

21 Mar 22:44
Compare
Choose a tag to compare

Features:

  • add extensions option to DllReferencePlugin
  • add warningsFilter to UglifyJsPlugin to hide warnings selectively
  • add extractComments to 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 (name in configuration) in rules
    • i. e. allows to specify different rules for extract-text-webpack-plugin or html-webpack-plugin
  • Allow to pass multiple entries via CLI
  • Performance improvements
  • CommonsChunkPlugin give errors on incorrect options
  • add module.strictExportPresence to make missing export an error instead of warning
  • Compiler emits watch-close event 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 System now 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

30 Jan 21:23
Compare
Choose a tag to compare

Bugfixes:

  • ident is no longer required, but it will choose one automatically
  • DefinePlugin no longer generates invalid code when using nested objects without semicolons

Features:

  • You can provide defaults and silence warnings of the EnvironmentPlugin now

v2.2.0

17 Jan 20:00
Compare
Choose a tag to compare

The first webpack 2 release

No changes here. It's equal to the last RC, but with an updated version number.

Here is a migration guide if you want to migrate from webpack 1 to webpack 2.

Here is a blog post about the release.

Here is the documentation for webpack 2. It's new!

v2.2.0-rc.7

16 Jan 15:04
Compare
Choose a tag to compare
v2.2.0-rc.7 Pre-release
Pre-release

Bugfixes:

  • fix watch flag in config with multiple configs
  • hoist export * from correctly to prevent use before define bug

Optimization:

  • remove some properties which are set to the default value

v2.2.0-rc.6

16 Jan 02:49
Compare
Choose a tag to compare
v2.2.0-rc.6 Pre-release
Pre-release

Bugfixes:

  • It's now possible to use var injections (i. e. global, ProvidePlugin) in ESM

v2.2.0-rc.5

15 Jan 16:28
Compare
Choose a tag to compare
v2.2.0-rc.5 Pre-release
Pre-release

Breaking change:

  • Reverted breaking change from last version
  • In ES module (import or export exists in module):
    • exports is undefined
    • define is undefined
    • module.exports is read-only and undefined

Bugfixes:

  • stats are no longer ignored when using the CLI
  • engine excludes now correctly node.js 5
  • export default now inserts the semicolon at the correct position

v2.2.0-rc.4

11 Jan 15:43
Compare
Choose a tag to compare
v2.2.0-rc.4 Pre-release
Pre-release

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 Promise is 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

28 Dec 15:09
Compare
Choose a tag to compare
v2.2.0-rc.3 Pre-release
Pre-release

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 --progress output (0636e7c)
  • fixes bug with export * and non-harmony modules (ee3d53c)
  • fixes bug when removing assets from the compilation (cb4c209)

v2.2.0-rc.2

22 Dec 11:25
Compare
Choose a tag to compare
v2.2.0-rc.2 Pre-release
Pre-release

Features:

  • Stats output now disables only 15 modules by default (see new option stats.maxModules, --display-max-modules)
  • Stats for modules now includes a depth for modules which is the distance to the entry point.
  • add --display-depth for CLI to display the module depth in stats

Bugfixes:

  • Cached modules now correctly reset meta information
  • arrow functions in require.ensure now work correctly

v2.2.0-rc.1

17 Dec 10:52
Compare
Choose a tag to compare
v2.2.0-rc.1 Pre-release
Pre-release

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_ie8 option