mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Fix issues with JavaScript importing JavaScript. (#4120)
Fixes #3852 Fixes #4117
This commit is contained in:
parent
22f88b9f37
commit
805992b14a
7 changed files with 20 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue