Skip to content

Commit 40c1676

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
1 parent 117628f commit 40c1676

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export async function setupServer(
547547
);
548548

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

552552
return {
553553
...result,

0 commit comments

Comments
 (0)