Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 8aae85c

Browse files
fiznooldanbucholtz
authored andcommitted
fix(ngc): revert change to purge decorators (Angular CLI did too)
1 parent 8685bf8 commit 8aae85c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/aot/aot-compiler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ export class AotCompiler {
136136
Logger.debug('[AotCompiler] compile: Removing decorators from program files ...');
137137
const tsFiles = this.context.fileCache.getAll().filter(file => extname(file.path) === '.ts' && file.path.indexOf('.d.ts') === -1);
138138
for (const tsFile of tsFiles) {
139-
const cleanedFileContent = removeDecorators(tsFile.path, tsFile.content);
140-
tsFile.content = cleanedFileContent;
139+
// Temporary fix to keep custom decorators until a
140+
// proper resolution can be found.
141+
/*const cleanedFileContent = removeDecorators(tsFile.path, tsFile.content);
142+
tsFile.content = cleanedFileContent;*/
143+
const cleanedFileContent = tsFile.content;
141144
const transpileOutput = this.transpileFileContent(tsFile.path, cleanedFileContent, this.tsConfig.parsed.options);
142145
const diagnostics = runTypeScriptDiagnostics(this.context, transpileOutput.diagnostics);
143146
if (diagnostics.length) {

0 commit comments

Comments
 (0)