mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
always emit files as modules when separateCompilation flag is specified
This commit is contained in:
1 parent
2349a27f92
commit
6ce9176926
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user