We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ddb38 commit 0cc220dCopy full SHA for 0cc220d
src/monaco/vue.worker.ts
@@ -95,7 +95,7 @@ async function importTsFromCdn(tsVersion: string) {
95
;(globalThis as any).module = { exports: {} }
96
const tsUrl = `https://cdn.jsdelivr.net/npm/typescript@${tsVersion}/lib/typescript.js`
97
await import(/* @vite-ignore */ tsUrl)
98
- const ts = module.exports
+ const ts = globalThis.module.exports
99
globalThis.module = _module
100
return ts as typeof import('typescript')
101
}
0 commit comments