Pre-release

@sokra sokra released this Jan 15, 2017 · 4569 commits to master since this release

Assets 2

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
Pre-release

@sokra sokra released this Jan 11, 2017 · 4585 commits to master since this release

Assets 2

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.

Pre-release

@sokra sokra released this Dec 28, 2016 · 4825 commits to master since this release

Assets 2

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)
Pre-release

@sokra sokra released this Dec 22, 2016 · 4865 commits to master since this release

Assets 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 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
Pre-release

@SpaceK33z SpaceK33z released this Dec 17, 2016 · 4891 commits to master since this release

Assets 2

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
Pre-release

@sokra sokra released this Dec 14, 2016 · 4899 commits to master since this release

Assets 2

This is the first RC for webpack 2. We will try to avoid breaking changes now until webpack 3.

Bugfixes:

  • id in generated code of a context module is correctly escaped
  • context modules are now affected by NamedModulesPlugin, HashedModuleIdsPlugin, DllPlugin
  • performance hints ignore SourceMaps now
  • don't include multiple use stricts
  • imports also mark the module as ES2015 module like exports
  • exit the process correctly when watching and a critical error happens
  • externals are no longer moved by the commons chunk plugin

Features:

  • entrypoints are flagged with [big] if they are over the limit
  • improve validation errors
  • allow to alias loaders to a value with query
  • performance improvements
Pre-release

@sokra sokra released this Dec 13, 2016 · 4947 commits to master since this release

Assets 2

Major changes:

  • add import() as Code Splitting construct. It should be used instead of System.import when possible. System.import will be deprecated in webpack 2 release (removed in webpack 3) as it's behavior is incorrect according to the spec.
  • *.json files are now supported without the json-loader. You may still use it. It's not a breaking change.
  • webpack will now show performance warnings when bundle size is too big. You can disable them with performance.hints = false. It recommended to disable them in development but leave them enabled in production.

Bugfixes:

  • Generate equal code on each platform when using node.js modules, module, process, global, etc.
  • CLI: Fixes --module-bind for the -loader change
  • Validation: externals now allows boolean values
  • Loaders: Complex options are now correctly passed when using remainingRequest like with the style-loader
  • Fixes a event leak when using watch mode
  • Stats: exclude now only tests resource and not complete identifier
  • Fixes bug related to export * from ...
  • CLI: Fix behavior of --cache and --no-cache
  • It's now possible to combine webpack ES2015 modules with babel ES2015 modules

Features:

  • add output.strictModuleExceptionHandling option which handles exceptions in modules correctly, but with less performance. The more performant variant is enabled by default.
  • Template strings are now allowed at locations where expressions are allowed. import(./template/${template})
  • Allow to match rules on resourceQuery
  • add __webpack_nonce__ to set nonce for chunk loading script tags
  • Improve tree shaking for import *

Performance:

  • Cache some expensive stuff

🎄 We are approaching the first Release Candidate...

@sokra sokra released this Dec 7, 2016 · 5881 commits to master since this release

Assets 2

Bugfixes:

  • fix this context for AMD require when combined with async commons chunk
  • update core dependency, which fixes a SourceMap bug
  • update node.js core libs
Pre-release

@sokra sokra released this Nov 15, 2016 · 5090 commits to master since this release

Assets 2

Bugfixes:

  • fixed indexed access to imported namespace object import * as X; X["abc"]
  • Deprecated DedupePlugin
  • Display an additional message for the breaking change in beta.26 to hint the user
  • fixed schema validation problem with noParse
Pre-release

@sokra sokra released this Nov 14, 2016 · 5100 commits to master since this release

Assets 2

Breaking Changes:

-loader is no longer automatically added when resolving loaders

This was removed because it often lead to problems.

You can still opt-in to the old behavior with the resolveLoader.moduleExtensions configuration option.

Node.js 0.10 is no longer supported

Node.js LTS for this version is expired. You won't miss it.

Note: 0.12 will expire in December 2017. We will remove it soon too.

Features:

  • AMD require now supports an error callback as 3rd argument

Bugfixes:

  • Declarations from destruction now hides imports
  • The parser now detects identifiers in destruction and default arguments
  • The parser no longer crashes on empty patterns [, a]
  • The schema now validates more stuff correctly
  • --version now works correctly