diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 12a20e0df4..c6dd100d0b 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -603,6 +603,12 @@ namespace ts { category: Diagnostics.Source_Map_Options, description: Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set }, + { + name: "allowUmdGlobalAccess", + type: "boolean", + category: Diagnostics.Module_Resolution_Options, + description: Diagnostics.Allow_accessing_UMD_globals_from_modules, + }, // Experimental { diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 7717f51bd5..63bcc0d90d 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4938,5 +4938,9 @@ "Convert parameters to destructured object": { "category": "Message", "code": 95075 + }, + "Allow accessing UMD globals from modules": { + "category": "Message", + "code": 95076 } } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 5549208105..7a554a8745 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4580,6 +4580,7 @@ namespace ts { allowJs?: boolean; /*@internal*/ allowNonTsExtensions?: boolean; allowSyntheticDefaultImports?: boolean; + allowUmdGlobalAccess?: boolean; allowUnreachableCode?: boolean; allowUnusedLabels?: boolean; alwaysStrict?: boolean; // Always combine with strict property