Skip to content

Commit

Permalink
fix(angular): only append workspace root if it does not exist for bui…
Browse files Browse the repository at this point in the history
…ldable libs nrwl#19807
  • Loading branch information
Coly010 committed Oct 25, 2023
1 parent b5ed979 commit b8ffca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/angular/src/builders/utilities/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b8ffca6

Please sign in to comment.