Skip to content

Commit d11b36f

Browse files
committed
fix(@angular-devkit/build-angular): normalize paths in ssr sourcemaps to posix when using vite
Path normalization that fixes a tests on windows (cherry picked from commit 40c1676)
1 parent 0236451 commit d11b36f

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/builders/dev-server

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export async function setupServer(
552552
);
553553

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

557557
return {
558558
...result,

0 commit comments

Comments
 (0)