add native worker

This commit is contained in:
2022-10-26 06:32:36 +02:00
parent ed2d592695
commit 57f1533f4a
3 changed files with 1531 additions and 477 deletions

2001
package-lock.json generated

File diff suppressed because it is too large Load Diff

3
src/file.worker.js Normal file
View File

@@ -0,0 +1,3 @@
console.log('Hello Worker!');

View File

@@ -1,4 +1,8 @@
<script setup>
import Worker from '../file.worker.js?worker';
const worker = new Worker();
</script>
<template>