File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9104,7 +9104,8 @@ var ts;
9104
9104
}
9105
9105
}
9106
9106
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) {
9108
9109
return emitPinnedOrTripleSlashComments(node);
9109
9110
}
9110
9111
emitLeadingComments(node);
Original file line number Diff line number Diff line change @@ -8909,7 +8909,8 @@ var ts;
8909
8909
}
8910
8910
}
8911
8911
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) {
8913
8914
return emitPinnedOrTripleSlashComments(node);
8914
8915
}
8915
8916
emitLeadingComments(node);
You can’t perform that action at this time.
0 commit comments