Skip to content

Commit cf3d284

Browse files
Update LKG.
1 parent 68045a3 commit cf3d284

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/tsc.js

+2-1
Original file line numberDiff line numberDiff 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);

bin/typescriptServices.js

+2-1
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)