Unable to package normal files in web worker #19073
Labels
feat: web workers
p3-minor-bug
An edge case that only affects very specific usage (priority)
plugin: legacy
Describe the bug
The generated worker file contains es syntax
export function __vite_legacy_guard()
Cannot be used normally in worker
Reproduction
https://stackblitz.com/edit/vitejs-vite-ixsfq5p1?file=main.js
Steps to reproduce
1.npm install
2.npm run build
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: