Skip to content

Commit 6ce9176

Browse files
committed
always emit files as modules when separateCompilation flag is specified
1 parent 2349a27 commit 6ce9176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5493,7 +5493,7 @@ if (typeof __param !== "function") __param = function (paramIndex, decorator) {
54935493
paramEmitted = true;
54945494
}
54955495

5496-
if (isExternalModule(node)) {
5496+
if (isExternalModule(node) || compilerOptions.separateCompilation) {
54975497
if (languageVersion >= ScriptTarget.ES6) {
54985498
emitES6Module(node, startIndex);
54995499
}

0 commit comments

Comments
 (0)