always emit files as modules when separateCompilation flag is specified

This commit is contained in:
Vladimir Matveev
2015-04-27 15:47:49 -07:00
parent 2349a27f92
commit 6ce9176926

View File

@@ -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);
}