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 d4a4279 commit 2669af3Copy full SHA for 2669af3
packages/webpack5/src/transformers/NativeClass/index.ts
@@ -192,7 +192,12 @@ export default function (context: ts.TransformationContext, ...args) {
192
}
193
if (ts.isBlock(node)) {
194
const [stmts, changed] = transformStatements(node.statements, false);
195
- return changed ? factory.updateBlock(node, stmts) : node;
+ if (changed) {
196
+ return factory.updateBlock(node, stmts);
197
+ }
198
+ // Even if transformStatements didn't change anything, we still need to visit children
199
+ // in case there are nested blocks
200
+ return ts.visitEachChild(node, visitNode, context);
201
202
if (ts.isModuleBlock(node)) {
203
0 commit comments