fix(ui): boot Monaco diff workers via workerMain

This commit is contained in:
Shantur Rathore
2026-02-09 23:56:33 +00:00
parent b59e85abda
commit 01ab2f2794
2 changed files with 21 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
// Monaco web worker bootstrap.
//
// `workerMain.js` expects `MonacoEnvironment.baseUrl` to be the directory that
// contains the `vs/` folder (so `/monaco/`, not `/monaco/vs`).
self.MonacoEnvironment = { baseUrl: "/monaco/" }
importScripts("/monaco/vs/base/worker/workerMain.js")