From 2c9015c64e51388d647be2f916cc03af8a098d7f Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Wed, 13 Sep 2023 00:35:46 -0400 Subject: [PATCH] Revert syntax change that breaks Vite production builds --- src/client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index b68be4d..45c7524 100644 --- a/src/client.ts +++ b/src/client.ts @@ -26,8 +26,9 @@ export class SQLocal { >(); constructor(databasePath: string) { - const workerPath = new URL('./worker', import.meta.url); - this.worker = new Worker(workerPath, { type: 'module' }); + this.worker = new Worker(new URL('./worker', import.meta.url), { + type: 'module', + }); this.worker.addEventListener('message', this.processMessageEvent); this.databasePath = databasePath;