Skip to content

Commit e8748f8

Browse files
authored
Add nested global member creation to shim (#35473)
1 parent a08d6ba commit e8748f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/globalThisShim.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
// @ts-ignore
4040
if (typeof process === "undefined" || process.browser) {
4141
/// TODO: this is used by VS, clean this up on both sides of the interface
42+
43+
//@ts-ignore
44+
globalThis.TypeScript = globalThis.TypeScript || {};
45+
//@ts-ignore
46+
globalThis.TypeScript.Services = globalThis.TypeScript.Services || {};
4247
//@ts-ignore
4348
globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory;
4449

0 commit comments

Comments
 (0)