Skip to content

Commit 2ee93bf

Browse files
committed
Add allowUmdGlobalAccess flag
1 parent 86f0d4b commit 2ee93bf

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/compiler/commandLineParser.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ namespace ts {
603603
category: Diagnostics.Source_Map_Options,
604604
description: Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
605605
},
606+
{
607+
name: "allowUmdGlobalAccess",
608+
type: "boolean",
609+
category: Diagnostics.Module_Resolution_Options,
610+
description: Diagnostics.Allow_accessing_UMD_globals_from_modules,
611+
},
606612

607613
// Experimental
608614
{

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4938,5 +4938,9 @@
49384938
"Convert parameters to destructured object": {
49394939
"category": "Message",
49404940
"code": 95075
4941+
},
4942+
"Allow accessing UMD globals from modules": {
4943+
"category": "Message",
4944+
"code": 95076
49414945
}
49424946
}

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4580,6 +4580,7 @@ namespace ts {
45804580
allowJs?: boolean;
45814581
/*@internal*/ allowNonTsExtensions?: boolean;
45824582
allowSyntheticDefaultImports?: boolean;
4583+
allowUmdGlobalAccess?: boolean;
45834584
allowUnreachableCode?: boolean;
45844585
allowUnusedLabels?: boolean;
45854586
alwaysStrict?: boolean; // Always combine with strict property

0 commit comments

Comments
 (0)