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

Commit

Permalink
fix(ngc): revert change to purge decorators (Angular CLI did too)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiznool authored and danbucholtz committed Jan 5, 2017
1 parent 8685bf8 commit 8aae85c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/aot/aot-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ export class AotCompiler {
Logger.debug('[AotCompiler] compile: Removing decorators from program files ...');
const tsFiles = this.context.fileCache.getAll().filter(file => extname(file.path) === '.ts' && file.path.indexOf('.d.ts') === -1);
for (const tsFile of tsFiles) {
const cleanedFileContent = removeDecorators(tsFile.path, tsFile.content);
tsFile.content = cleanedFileContent;
// Temporary fix to keep custom decorators until a
// proper resolution can be found.
/*const cleanedFileContent = removeDecorators(tsFile.path, tsFile.content);
tsFile.content = cleanedFileContent;*/
const cleanedFileContent = tsFile.content;
const transpileOutput = this.transpileFileContent(tsFile.path, cleanedFileContent, this.tsConfig.parsed.options);
const diagnostics = runTypeScriptDiagnostics(this.context, transpileOutput.diagnostics);
if (diagnostics.length) {
Expand Down

0 comments on commit 8aae85c

Please sign in to comment.