Add --allowArbitraryExtensions, a flag for allowing arbitrary extensions on import paths (#51435)

This commit is contained in:
Wesley Wigham authored and GitHub committed 2023-01-09 17:12:42 -08:00
1 parent 9b718d0a70
commit 89e928e8b4
118 files changed
+3056 -1401

No files matched your search

+8
View File
@@ -1206,6 +1206,14 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
description: Diagnostics.Enable_importing_json_files,
defaultValueDescription: false,
},
{
name: "allowArbitraryExtensions",
type: "boolean",
affectsModuleResolution: true,
category: Diagnostics.Modules,
description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,
defaultValueDescription: false,
},
{
name: "out",