Skip to content

Upgrading webpack-merge 1 to 2

Breaking1.1.2 → 2.6.1Breaking2New2Changed1Fixed5

BreakingUpgrade verdict

2 breaking changes.

  • A helper for merging webpack rule and plugin settings has been removed because it broke in complicated setups.
  • Merging an empty array or object no longer replaces the existing value; you must opt in with a merge strategy.
2 items need code or config changes

Adds lodash ^4.17.4.

Drops lodash.clonedeep, lodash.differencewith, lodash.isequal, lodash.isfunction, lodash.isplainobject, lodash.mergewith, lodash.unionwith.

Installs 1 package in all (was 7).

Breaking2
Removes merge.smartStrategy(rules, plugins) because it caused prototype copying issues in complex cases.
merge.smartStrategy
Disallows overriding configuration with empty arrays or objects; use merge.strategy to override.
mergemerge.strategy