feat: begin building worker

This commit is contained in:
Jixun Wu 2023-05-08 16:23:46 +01:00
parent 7b09967233
commit 6bea3c135f
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' });

View File

@ -0,0 +1,3 @@
onmessage = (e) => {
console.log(e.data);
};