From 4a4c7b2732ad478c59a698a3d793e7acff2d6fb1 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Fri, 10 Feb 2023 08:27:22 -0500 Subject: [PATCH] fix(webpack): pass the correct config to user when isolatedConfig=false --- .../webpack/src/executors/webpack/webpack.impl.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/webpack/src/executors/webpack/webpack.impl.ts b/packages/webpack/src/executors/webpack/webpack.impl.ts index 511a99f9df4b7..c1aac491e620d 100644 --- a/packages/webpack/src/executors/webpack/webpack.impl.ts +++ b/packages/webpack/src/executors/webpack/webpack.impl.ts @@ -48,14 +48,11 @@ async function getWebpackConfigs( : getWebpackConfig(context, options); if (customWebpack) { - return await customWebpack( - {}, - { - options, - context, - configuration: context.configurationName, // backwards compat - } - ); + return await customWebpack(config, { + options, + context, + configuration: context.configurationName, // backwards compat + }); } else { // If the user has no webpackConfig specified then we always have to apply return config;