Skip to content

Commit 7e5510e

Browse files
committed
fix(@angular/build): disable linker internal source mapping in OXC linker
The OXC linker handles source maps externally via MagicString and remapping. Disabling the linker's internal sourceMapping option prevents the LinkerEnvironment from attempting to read source files through the noopFileSystem.
1 parent a6d5aab commit 7e5510e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/angular/build/src/tools/angular/linker/oxc-linker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function linkWithOxc(filename: string, code: string, options: OxcLinkerOp
135135
SHARED_LOGGER,
136136
SHARED_AST_HOST,
137137
astFactory,
138-
{ linkerJitMode: options.jit ?? false },
138+
{ linkerJitMode: options.jit ?? false, sourceMapping: false },
139139
);
140140

141141
const fileLinker = new FileLinker(linkerEnvironment, filename as AbsoluteFsPath, code);

0 commit comments

Comments
 (0)