Fix issues with JavaScript importing JavaScript. (#4120)

Fixes #3852
Fixes #4117
This commit is contained in:
Kitson Kelly 2020-02-25 19:32:43 +11:00 committed by GitHub
parent 22f88b9f37
commit 805992b14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 5 deletions

View file

@ -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 */