From 805992b14a65a6dbfb857dea6d9b657477de043d Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 25 Feb 2020 19:32:43 +1100 Subject: Fix issues with JavaScript importing JavaScript. (#4120) Fixes #3852 Fixes #4117 --- cli/js/compiler_host.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/js/compiler_host.ts') diff --git a/cli/js/compiler_host.ts b/cli/js/compiler_host.ts index d44bc7a03..78ed4889a 100644 --- a/cli/js/compiler_host.ts +++ b/cli/js/compiler_host.ts @@ -47,18 +47,18 @@ export const defaultBundlerOptions: ts.CompilerOptions = { /** Default options used by the compiler Host when compiling. */ export const defaultCompileOptions: ts.CompilerOptions = { - allowJs: true, + allowJs: false, allowNonTsExtensions: true, - strict: true, checkJs: false, esModuleInterop: true, + jsx: ts.JsxEmit.React, module: ts.ModuleKind.ESNext, outDir: OUT_DIR, resolveJsonModule: true, sourceMap: true, + strict: true, stripComments: true, - target: ts.ScriptTarget.ESNext, - jsx: ts.JsxEmit.React + target: ts.ScriptTarget.ESNext }; /** Options that need to be used when doing a runtime (non bundled) compilation */ -- cgit v1.2.3