A specialized merge library designed for webpack configuration objects. Version 6.0.1 is the current stable release, requiring Node >=18.0.0. Unlike generic merge utilities (e.g., Lodash.merge), it concatenates arrays, merges objects, and executes functions before merging—critical for webpack's plugin arrays and nested rules. Ships TypeScript types. Maintained actively, with minor/patch releases every few months.
npm install webpack-mergeVerified import paths — ran on the pinned version, not inferred.
Shows merging a common webpack config with environment-specific overrides using merge().
Upgrade Node.js to >=18.0.0 or stick with v5.
If you need replacement, use mergeWithCustomize with a customArray function that returns b instead of concatenating.
Use mergeWithCustomize or merge() directly.
Wrap function-returning configs in an async wrapper only if you need async behavior; note Promises are not supported.
Use mergeWithCustomize with customizeObject if you want replacement semantics.
npm install webpack-merge@6.0.1 and use correct import syntax.
Use const { merge } = require('webpack-merge') or import { merge } from 'webpack-merge'.Import as named export: import { mergeWithCustomize } from 'webpack-merge'.No dependency data recorded yet.