Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): resolve absolute output-path wh…
Browse files Browse the repository at this point in the history
…en using esbuild based builders

Prior to this change using an absolute path as a `output-path` resulted in the path to be combined with the workspace root instead of resolved which caused the output to be emitted in the incorrect directory or error in Windows.

Closes #26935

(cherry picked from commit 37ffa5e)
  • Loading branch information
alan-agius4 committed Jan 26, 2024
1 parent 33662ac commit 5332e5b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -144,7 +144,7 @@ export async function normalizeOptions(
media: 'media',
...(typeof outputPath === 'string' ? undefined : outputPath),
base: normalizeDirectoryPath(
path.join(workspaceRoot, typeof outputPath === 'string' ? outputPath : outputPath.base),
path.resolve(workspaceRoot, typeof outputPath === 'string' ? outputPath : outputPath.base),
),
};

Expand Down

0 comments on commit 5332e5b

Please sign in to comment.