diff --git a/src/ts/modules/monaco.ts b/src/ts/modules/monaco.ts index fc8e17d0..63f14212 100644 --- a/src/ts/modules/monaco.ts +++ b/src/ts/modules/monaco.ts @@ -97,7 +97,7 @@ import EDITOR_WORKER_URL from "worker:../workers/editor.ts"; getWorker: function (_, label) { if (label === "typescript" || label === "javascript") { let WorkerArgs = { name: `${label}-worker` }; - return new Worker(TYPESCRIPT_WORKER_URL, WorkerArgs); // WebWorker + return new WebWorker(TYPESCRIPT_WORKER_URL, WorkerArgs); } return (() => { diff --git a/src/ts/workers/ts-worker-factory.ts b/src/ts/workers/ts-worker-factory.ts index acf41c18..56693b98 100644 --- a/src/ts/workers/ts-worker-factory.ts +++ b/src/ts/workers/ts-worker-factory.ts @@ -136,7 +136,6 @@ const worker: CustomTSWebWorkerFactory = (TypeScriptWorker) => { let url = new URL(self.location.origin.toString()); if (modules.length > 0) url.searchParams.set("q", modules); if (treeshake.replace(/\[\*\]|\,/g, "").length > 0) { - console.log(treeshake, treeshake.replace(/\[\*\]|\,/g, "")) url.searchParams.set("treeshake", treeshake); }