Add support for creating a custom webworker subclass

This commit is contained in:
Orta 2020-08-21 07:43:59 -04:00
parent 94d92a7181
commit 26d78129fa
6 changed files with 262 additions and 5 deletions

9
test/custom-worker.js Normal file
View file

@ -0,0 +1,9 @@
/// <reference lib="webworker">
console.log("worker")
self.extendTSWorkerFactory = (TypeScriptWorker) => {
return class MonacoTSWorker extends TypeScriptWorker {
}
}