Skip to content

Commit

Permalink
fix(@ngtools/webpack): keep the decorators in. (#3583)
Browse files Browse the repository at this point in the history
This is a temporary fix for people using custom decorators. The AOT size will be larger temporarily, but we are working on an actual fix where we rtemove only Angular decorators.
  • Loading branch information
hansl authored Dec 15, 2016
1 parent bd03100 commit db25183
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@ngtools/webpack/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ function _getContentOfKeyLiteral(source: ts.SourceFile, node: ts.Node): string {
}

function _removeDecorators(refactor: TypeScriptFileRefactor) {
// TODO: replace this by tsickle.
// Find all decorators.
refactor.findAstNodes(refactor.sourceFile, ts.SyntaxKind.Decorator)
.forEach(d => refactor.removeNode(d));
// refactor.findAstNodes(refactor.sourceFile, ts.SyntaxKind.Decorator)
// .forEach(d => refactor.removeNode(d));
}


Expand Down

0 comments on commit db25183

Please sign in to comment.