mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Always set allowNonTsExtensions for allowJs
This commit is contained in:
1 parent
2fc634f460
commit
3480fcc69a
2 files changed
+111
-2
No files matched your search
@@ -165,8 +165,8 @@ namespace ts.server {
|
||||
this.compilerOptions.allowNonTsExtensions = true;
|
||||
this.compilerOptions.allowJs = true;
|
||||
}
|
||||
else if (hasExplicitListOfFiles) {
|
||||
// If files are listed explicitly, allow all extensions
|
||||
else if (hasExplicitListOfFiles || this.compilerOptions.allowJs) {
|
||||
// If files are listed explicitly or allowJs is specified, allow all extensions
|
||||
this.compilerOptions.allowNonTsExtensions = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user