We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d480c commit 898b436Copy full SHA for 898b436
packages/ngtools/webpack/src/transformers/replace_resources.ts
@@ -17,10 +17,22 @@ export function replaceResources(
17
18
const visitNode: ts.Visitor = (node: ts.Decorator) => {
19
if (ts.isClassDeclaration(node)) {
20
- node.decorators = ts.visitNodes(
+ const decorators = ts.visitNodes(
21
node.decorators,
22
(node: ts.Decorator) => visitDecorator(node, typeChecker),
23
);
24
+
25
+ // todo: we need to investigate and confirm that using
26
+ // `updateClassDeclaration` has no regressions
27
+ return ts.updateClassDeclaration(
28
+ node,
29
+ decorators,
30
+ node.modifiers,
31
+ node.name,
32
+ node.typeParameters,
33
+ node.heritageClauses,
34
+ node.members,
35
+ );
36
}
37
38
return ts.visitEachChild(node, visitNode, context);
0 commit comments