Skip to content

Commit db25183

Browse files
authored
fix(@ngtools/webpack): keep the decorators in. (#3583)
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.
1 parent bd03100 commit db25183

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@ngtools/webpack/src/loader.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ function _getContentOfKeyLiteral(source: ts.SourceFile, node: ts.Node): string {
1717
}
1818

1919
function _removeDecorators(refactor: TypeScriptFileRefactor) {
20+
// TODO: replace this by tsickle.
2021
// Find all decorators.
21-
refactor.findAstNodes(refactor.sourceFile, ts.SyntaxKind.Decorator)
22-
.forEach(d => refactor.removeNode(d));
22+
// refactor.findAstNodes(refactor.sourceFile, ts.SyntaxKind.Decorator)
23+
// .forEach(d => refactor.removeNode(d));
2324
}
2425

2526

0 commit comments

Comments
 (0)