-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Cannot preload workers #13355
Comments
Start a new pull request in StackBlitz Codeflow. |
Looks like we need to skip inlining it for |
That's part of it but if you look at the file it inlined it's the original (not minified). This becomes even more obvious in a typescript project where it inlines the typescript file before compiling it. I think it is trying to load it as an asset when it should be a chunk. |
As a workaround I wrote a plugin to inject the module preload tags but I think this workaround probably only works for SPAs. |
I don't think inlining would work with |
Just filed #16269 since this problem seems to affect |
Describe the bug
When I try to preload a worker like this
I expect
But actually
Reproduction
https://stackblitz.com/edit/vite-min-to-reproduce-module-preload-worker
Steps to reproduce
npm run build
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: