Skip to content

Commit

Permalink
chore: update webpack-merge (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 13, 2021
1 parent cbf2e45 commit 3eabbbc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const { program } = require('commander');
const getPkg = require('./utils/package-exists');
const webpack = getPkg('webpack') ? require('webpack') : undefined;
const webpackMerge = require('webpack-merge');
const { merge } = require('webpack-merge');
const { extensions, jsVariants } = require('interpret');
const rechoir = require('rechoir');
const { createWriteStream, existsSync } = require('fs');
Expand Down Expand Up @@ -921,7 +921,7 @@ class WebpackCLI {

config.options = config.options.reduce((accumulator, options) => {
const configPath = config.path.get(options);
const mergedOptions = webpackMerge(accumulator, options);
const mergedOptions = merge(accumulator, options);

mergedConfigPaths.push(configPath);

Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-cli/package.json
Expand Up @@ -40,7 +40,7 @@
"interpret": "^2.2.0",
"rechoir": "^0.7.0",
"v8-compile-cache": "^2.2.0",
"webpack-merge": "^4.2.2"
"webpack-merge": "^5.7.3"
},
"peerDependencies": {
"webpack": "4.x.x || 5.x.x"
Expand Down
16 changes: 11 additions & 5 deletions yarn.lock
Expand Up @@ -11058,12 +11058,13 @@ webpack-log@^2.0.0:
ansi-colors "^3.0.0"
uuid "^3.3.2"

webpack-merge@^4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-4.2.2.tgz#a27c52ea783d1398afd2087f547d7b9d2f43634d"
integrity sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==
webpack-merge@^5.7.3:
version "5.7.3"
resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.7.3.tgz#2a0754e1877a25a8bbab3d2475ca70a052708213"
integrity sha512-6/JUQv0ELQ1igjGDzHkXbVDRxkfA57Zw7PfiupdLFJYrgFqY5ZP8xxbpp2lU3EPwYx89ht5Z/aDkD40hFCm5AA==
dependencies:
lodash "^4.17.15"
clone-deep "^4.0.1"
wildcard "^2.0.0"

webpack-sources@^2.1.1:
version "2.2.0"
Expand Down Expand Up @@ -11177,6 +11178,11 @@ wide-align@^1.1.0:
dependencies:
string-width "^1.0.2 || 2"

wildcard@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.0.tgz#a77d20e5200c6faaac979e4b3aadc7b3dd7f8fec"
integrity sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==

windows-release@^3.1.0:
version "3.3.3"
resolved "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.3.tgz#1c10027c7225743eec6b89df160d64c2e0293999"
Expand Down

0 comments on commit 3eabbbc

Please sign in to comment.