9 lines
200 B
TypeScript
9 lines
200 B
TypeScript
|
export const getWorker = () => {
|
||
|
console.log({ caller: 'getWorker' });
|
||
|
return new Worker(new URL('./dispatcher-worker', import.meta.url), {
|
||
|
type: 'module',
|
||
|
});
|
||
|
};
|
||
|
|
||
|
export default getWorker;
|