File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9104,7 +9104,8 @@ var ts;
91049104 }
91059105 }
91069106 function emitModuleDeclaration(node) {
9107- if (ts.getModuleInstanceState(node) !== 1 /* Instantiated */) {
9107+ var shouldEmit = ts.getModuleInstanceState(node) === 1 /* Instantiated */ || (ts.getModuleInstanceState(node) === 2 /* ConstEnumOnly */ && compilerOptions.preserveConstEnums);
9108+ if (!shouldEmit) {
91089109 return emitPinnedOrTripleSlashComments(node);
91099110 }
91109111 emitLeadingComments(node);
Original file line number Diff line number Diff line change @@ -8909,7 +8909,8 @@ var ts;
89098909 }
89108910 }
89118911 function emitModuleDeclaration(node) {
8912- if (ts.getModuleInstanceState(node) !== 1 /* Instantiated */) {
8912+ var shouldEmit = ts.getModuleInstanceState(node) === 1 /* Instantiated */ || (ts.getModuleInstanceState(node) === 2 /* ConstEnumOnly */ && compilerOptions.preserveConstEnums);
8913+ if (!shouldEmit) {
89138914 return emitPinnedOrTripleSlashComments(node);
89148915 }
89158916 emitLeadingComments(node);
You can’t perform that action at this time.
0 commit comments