diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 48718146ac6..0d2ffc4154d 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -5493,7 +5493,7 @@ if (typeof __param !== "function") __param = function (paramIndex, decorator) { paramEmitted = true; } - if (isExternalModule(node)) { + if (isExternalModule(node) || compilerOptions.separateCompilation) { if (languageVersion >= ScriptTarget.ES6) { emitES6Module(node, startIndex); }