From e9688dd3fd582788d3ab0a2f48b13679b83dc645 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 9 Sep 2015 16:46:39 -0700 Subject: [PATCH] Allow the js files to emit output --- src/compiler/utilities.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 99ea06532a0..414a2649e56 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1769,8 +1769,9 @@ namespace ts { if (!isDeclarationFile(sourceFile)) { if ((isExternalModule(sourceFile) || !(compilerOptions.outFile || compilerOptions.out))) { // 1. in-browser single file compilation scenario - // 2. non .js file - return compilerOptions.isolatedModules || !fileExtensionIs(sourceFile.fileName, ".js"); + // 2. non supported extension file + return compilerOptions.isolatedModules || + forEach(supportedExtensions, extension => fileExtensionIs(sourceFile.fileName, extension)); } return false; }