Skip to content

Upgrading extract-text-webpack-plugin 2 to 3

Breaking2.1.2 → 3.0.2Breaking3Platform3Deprecated2Changed1Fixed8Other2

BreakingUpgrade verdict

1 breaking change and 3 platform requirement changes.

  • This version no longer works with Webpack 2.x because of breaking changes in webpack.
  • You must use Webpack 3.1.0 or newer with this plugin.
  • You must use Webpack version 3.1.0 or newer with this plugin.
  • You must use Webpack 3.0.0-rc.0 or newer with this plugin.
Top 5 of 6 that need code or config changes

Node.js requirement changed in 3.0.2: >=4.3.0 < 5.0.0 || >= 5.10 → >= 4.8 < 5.0.0 || >= 5.10.

Breaking1
Updates to Chunk.mapModules and is not backwards compatible with Webpack 2.x.
Chunk.mapModulesChunk.forEachModuleChunk.getNumberOfModuleschunk.modules
Platform3
Enforces peerDependencies of "webpack": "^3.1.0".
peerDependencies
Requires a minimum Webpack peerDependency of >=3.1.0.
Enforces peerDependencies of "webpack": ">= 3.0.0-rc.0 || ^3.0.0".
webpack
Deprecated2
Refactors to avoid the Chunk.modules DeprecationWarning.
Chunk.modules
Adds a deprecation warning for Chunk.modules.
Chunk.modules