Skip to content

Commit 800d25e

Browse files
committed
fix(@angular/build): return direct file contents for non-Angular TypeScript files
1 parent ecf8c08 commit 800d25e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export function createCompilerPlugin(
456456
if (!requiresAngularCompiler(directContents)) {
457457
return {
458458
warnings: [createMissingFileDiagnostic(request, args.path, diangosticRoot, false)],
459-
contents,
459+
contents: directContents,
460460
loader: 'ts',
461461
resolveDir: path.dirname(request),
462462
};

0 commit comments

Comments
 (0)