⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
Describe the bug
1, I can't import other script/lib in worker, when Import other script, worker init failed and not error msg.
2, How can I use sharedworker in vite? I use import url, but it also can't import other script
I try this way, but failed. chrome inspect can see error log:
import SW_URL from "./sharedworker.js?url";
const sw = new SharedWorker(SW_URL);

Reproduction
github/vite2-worker-bug。
System Info
vite version: ^2.0.0-beta.65
- Operating System: windows10
- Node version: 14
- Package manager (npm/yarn/pnpm) and version: yarn 1.22.4
Describe the bug
1, I can't import other script/lib in worker, when Import other script, worker init failed and not error msg.
2, How can I use sharedworker in vite? I use import url, but it also can't import other script

I try this way, but failed. chrome inspect can see error log:
import SW_URL from "./sharedworker.js?url";
const sw = new SharedWorker(SW_URL);
Reproduction
github/vite2-worker-bug。
System Info
viteversion: ^2.0.0-beta.65