mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Add support for creating a custom webworker subclass
This commit is contained in:
parent
94d92a7181
commit
26d78129fa
6 changed files with 262 additions and 5 deletions
9
test/custom-worker.js
Normal file
9
test/custom-worker.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/// <reference lib="webworker">
|
||||
|
||||
console.log("worker")
|
||||
|
||||
self.extendTSWorkerFactory = (TypeScriptWorker) => {
|
||||
return class MonacoTSWorker extends TypeScriptWorker {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue