Upgrading webpack-merge 1 to 2
Breaking1.1.2 → 2.6.1Breaking2New2Changed1Fixed5
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- 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.
Must act 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).
What you must change
Breaking2
Removes merge.smartStrategy(rules, plugins) because it caused prototype copying issues in complex cases.
merge.smartStrategyDisallows overriding configuration with empty arrays or objects; use merge.strategy to override.
mergemerge.strategy