fix(@angular-devkit/build-angular): normalize paths in ssr sourcemaps to posix when using vite

Path normalization that fixes a tests on windows
This commit is contained in:
Alan Agius 2023-11-16 15:27:50 +00:00 committed by Alan Agius
parent 117628f796
commit 40c16760c4

View File

@ -547,7 +547,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,