Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): normalize paths in ssr sourcemaps…
Browse files Browse the repository at this point in the history
… to posix when using vite

Path normalization that fixes a tests on windows

(cherry picked from commit 40c1676)
  • Loading branch information
alan-agius4 committed Nov 20, 2023
1 parent 0236451 commit d11b36f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export async function setupServer(
);

// Set the sourcemap root to the workspace root. This is needed since we set a virtual path as root.
remappedMap.sourceRoot = serverOptions.workspaceRoot + '/';
remappedMap.sourceRoot = normalizePath(serverOptions.workspaceRoot) + '/';

return {
...result,
Expand Down

0 comments on commit d11b36f

Please sign in to comment.