Fix behavior for extensionless files with .mime file (#1779)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-02-15 08:05:29 -08:00 committed by Ryan Dahl
parent 2241049c34
commit fe0ceae543
10 changed files with 14 additions and 2 deletions

View file

@ -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,