summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-15 08:05:29 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-15 11:05:29 -0500
commitfe0ceae54373c0e12b36111b886a06c800f86c20 (patch)
treef3bc3c81e1623eeaa5e00b54ef367826cecda75f /js
parent2241049c349443a971ba2558f373d62bbb7d9780 (diff)
Fix behavior for extensionless files with .mime file (#1779)
Diffstat (limited to 'js')
-rw-r--r--js/compiler.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index fa865de43..4ffef30fc 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -162,6 +162,7 @@ class Compiler implements ts.LanguageServiceHost, ts.FormatDiagnosticsHost {
// arguments
private readonly _options: ts.CompilerOptions = {
allowJs: true,
+ allowNonTsExtensions: true,
checkJs: true,
esModuleInterop: true,
module: ts.ModuleKind.ESNext,