Need allowJs to be true to use the json module resolution

This commit is contained in:
Sheetal Nandi committed 2018-02-23 14:00:23 -08:00
1 parent a1922fd41f
commit ca590d6fed
18 files changed
+137 -20

No files matched your search

+2 -1
View File
@@ -2037,7 +2037,8 @@ namespace ts {
// Rather than requery this for each file and filespec, we query the supported extensions
// once and store it on the expansion context.
const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
// When computing file names, do not include json files. Use only module resolution or explicit includes for them
const supportedExtensions = getSupportedExtensions(options, extraFileExtensions, /*excludeJson*/ true);
// Literal files are always included verbatim. An "include" or "exclude" specification cannot
// remove a literal file.