-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Vite generates an empty JS file (which shouldn't exist) #6913
Comments
@davidmz Why the input is |
It's important to note that this only happens with |
For us this happens with Reproduction Code: https://github.com/thasmo/vite-6913 |
Anyone find a resolution to this? |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
I get a file
|
Describe the bug
In some conditions,
vite build
generates an empty js file that has no source. I tried to create a minimal reproduction, please see the attached link to stackblitz.Run
vite build
(or just see an existing 'dist' folder there). It generates an empty 'assets/qa-item.00ef0854.js' file that is used in generated page1.html and page2.html. But the sources of these files has no js links.Reproduction
https://stackblitz.com/edit/vitejs-vite-1fn6ez
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: