Skip to content

Commit

Permalink
fix: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio authored Nov 15, 2021
1 parent 6e3d1d0 commit 8969ed8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/ts/modules/monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (() => {
Expand Down
1 change: 0 additions & 1 deletion src/ts/workers/ts-worker-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

1 comment on commit 8969ed8

@vercel
Copy link

@vercel vercel bot commented on 8969ed8 Nov 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.