add native worker
This commit is contained in:
2001
package-lock.json
generated
2001
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
3
src/file.worker.js
Normal file
3
src/file.worker.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
console.log('Hello Worker!');
|
||||||
|
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
|
import Worker from '../file.worker.js?worker';
|
||||||
|
const worker = new Worker();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user