Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can support vue3 #29

Open
ewrfedf opened this issue Nov 10, 2020 · 1 comment
Open

can support vue3 #29

ewrfedf opened this issue Nov 10, 2020 · 1 comment

Comments

@ewrfedf
Copy link

ewrfedf commented Nov 10, 2020

No description provided.

@Lutymane
Copy link

Lutymane commented Feb 14, 2021

Basically this in your main.js

import { createApp } from 'vue'
import App from './App.vue'
import SimpleWebWorker from 'simple-web-worker'

const app = createApp(App)
app.config.globalProperties.$worker = SimpleWebWorker;

app.mount('#app')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants