fix(ui): boot Monaco diff workers via workerMain
This commit is contained in:
7
packages/ui/src/renderer/public/monaco.worker.js
Normal file
7
packages/ui/src/renderer/public/monaco.worker.js
Normal 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")
|
||||
Reference in New Issue
Block a user