Skip to content

Commit

Permalink
Revert syntax change that breaks Vite production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DallasHoff committed Sep 13, 2023
1 parent 1add408 commit 2c9015c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c9015c

Please sign in to comment.