diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/compiler.ts | 1 | ||||
| -rw-r--r-- | js/compiler_test.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/js/compiler.ts b/js/compiler.ts index 842ee77b3..f38330c04 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -137,6 +137,7 @@ export class Compiler private readonly _options: ts.CompilerOptions = { allowJs: true, checkJs: true, + esModuleInterop: true, module: ts.ModuleKind.ESNext, outDir: "$deno$", resolveJsonModule: true, diff --git a/js/compiler_test.ts b/js/compiler_test.ts index c5b2ca289..771fbcc6b 100644 --- a/js/compiler_test.ts +++ b/js/compiler_test.ts @@ -506,6 +506,7 @@ test(function compilerGetCompilationSettings() { const expectedKeys = [ "allowJs", "checkJs", + "esModuleInterop", "module", "outDir", "resolveJsonModule", |
