Skip to content

Commit 0e229ad

Browse files
committed
fixup! fix(@angular/build): align lazy route entry names with workspace root for SSR modulepreload
1 parent 997bf67 commit 0e229ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import type * as ng from '@angular/compiler-cli';
1010
import type { PartialMessage } from 'esbuild';
1111
import * as path from 'node:path';
12-
import { join } from 'node:path';
1312
import type ts from 'typescript';
13+
import { toPosixPath } from '../../../utils/path';
1414

1515
export interface CompilerOptionOverrides {
1616
sourcemap?: boolean;
@@ -136,7 +136,7 @@ export function transformCompilerOptions(
136136
return {
137137
compilerOptions: {
138138
...compilerOptions,
139-
basePath: overrides?.basePath ?? compilerOptions.basePath,
139+
basePath: overrides?.basePath ? toPosixPath(overrides.basePath) : compilerOptions.basePath,
140140
noEmitOnError: false,
141141
composite: false,
142142
inlineSources: !!overrides?.sourcemap,

0 commit comments

Comments
 (0)