Skip to content

Commit 32c561b

Browse files
committed
fixup! fix(@angular/build): align lazy route entry names with workspace root for SSR modulepreload
1 parent ad80e2b commit 32c561b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/angular/build/src/tools/angular/compilation/compiler-options.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type * as ng from '@angular/compiler-cli';
1010
import type { PartialMessage } from 'esbuild';
1111
import * as path from 'node:path';
1212
import type ts from 'typescript';
13+
import { toPosixPath } from '../../../utils/path';
1314

1415
export interface CompilerOptionOverrides {
1516
sourcemap?: boolean;
@@ -114,7 +115,7 @@ export function transformCompilerOptions(
114115
return {
115116
compilerOptions: {
116117
...compilerOptions,
117-
basePath: overrides?.basePath ?? compilerOptions.basePath,
118+
basePath: overrides?.basePath ? toPosixPath(overrides.basePath) : compilerOptions.basePath,
118119
noEmitOnError: false,
119120
composite: false,
120121
inlineSources: !!overrides?.sourcemap,

0 commit comments

Comments
 (0)