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 a49ce91 commit b193426Copy full SHA for b193426
src/compiler/transformers/ts.ts
@@ -2891,7 +2891,7 @@ namespace ts {
2891
// })(world = hi.world || (hi.world = {}));
2892
// })(hi = hello.hi || (hello.hi = {}));
2893
// })(hello || (hello = {}));
2894
- // so if the block is a transformed module declaration, turn off the comment emit
+ // We only want to emit comment on the namespace which contains block body itself, not the containing namespaces.
2895
if (body.kind !== SyntaxKind.ModuleBlock) {
2896
setNodeEmitFlags(block, block.emitFlags | NodeEmitFlags.NoComments);
2897
}
0 commit comments