diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-03-03 08:18:27 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 22:18:27 +0100 |
commit | 83d902a7803adb0c69fe2c98e692a50dae446db9 (patch) | |
tree | 75d15519f15748a0c3d016d0ed4e8f1d8389185d /cli/js/compiler_host.ts | |
parent | a3c3a56ff71c325ea4807548484023c95ffdcd77 (diff) |
Fix JavaScript dependencies in bundles. (#4215)
Fixes #4602
We turned off `allowJs` by default, to keep the compiler from grabbing
a bunch of files that it wouldn't actually do anything useful with. On
the other hand, this caused problems with bundles, where the compiler
needs to gather all the dependencies, including JavaScript ones. This
fixes this so that when we are bundling, we analyse JavaScript imports
in the compiler.
Diffstat (limited to 'cli/js/compiler_host.ts')
-rw-r--r-- | cli/js/compiler_host.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/js/compiler_host.ts b/cli/js/compiler_host.ts index 78ed4889a..585a7833e 100644 --- a/cli/js/compiler_host.ts +++ b/cli/js/compiler_host.ts @@ -37,6 +37,7 @@ export interface ConfigureResponse { /** Options that need to be used when generating a bundle (either trusted or * runtime). */ export const defaultBundlerOptions: ts.CompilerOptions = { + allowJs: true, inlineSourceMap: false, module: ts.ModuleKind.System, outDir: undefined, |