From 27c8a8418a0c9c8e08c5765186bc2432436f4d38 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 30 Mar 2022 17:15:15 +0200 Subject: [PATCH] fix(@angular-devkit/build-angular): add `node_modules` prefix to excludes RegExp Without the `node_modules` prefix, projects named the same as the excluded package names ex: `webpack` will not compile successfully as all files under the mentioned project will be excluded from being requested by the respective loaders. Closes #22902 --- .../build_angular/src/webpack/configs/common.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index 928e8d346f59..e8b4d870ac8e 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -243,7 +243,9 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise