build --watch doesnt build workers (new Worker(new URL())
)
#14435
Labels
feat: hmr
feat: web workers
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I have a library that uses workers and wasm. When I build the first time, it works perfectly, but when it hot-reloads it gives an error.
I have included a minimal example that uses the vite starter template and only adds a couple lines of code to demo the issue.
Reproduction
https://github.com/spencerchubb/hot-reload-bug.git
Steps to reproduce
System Info
Used Package Manager
npm
Logs
message: "Uncaught SyntaxError: Unexpected token '<'"
Validations
The text was updated successfully, but these errors were encountered: