From b8ffca6387018e74192745544781ae2a3d804576 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Wed, 25 Oct 2023 11:12:28 +0100 Subject: [PATCH] fix(angular): only append workspace root if it does not exist for buildable libs #19807 --- packages/angular/src/builders/utilities/webpack.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/angular/src/builders/utilities/webpack.ts b/packages/angular/src/builders/utilities/webpack.ts index 6bc4e7d177020..916cfbdd7cdfa 100644 --- a/packages/angular/src/builders/utilities/webpack.ts +++ b/packages/angular/src/builders/utilities/webpack.ts @@ -11,7 +11,9 @@ export async function mergeCustomWebpackConfig( ) { const customWebpackConfiguration = resolveCustomWebpackConfig( pathToWebpackConfig, - join(workspaceRoot, options.tsConfig) + options.tsConfig.startsWith(workspaceRoot) + ? options.tsConfig + : join(workspaceRoot, options.tsConfig) ); // The extra Webpack configuration file can also export a Promise, for instance: // `module.exports = new Promise(...)`. If it exports a single object, but not a Promise,