-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
SSR assets code removed after build #8041
Comments
Thanks for reporting the issue. |
@paul-phan I'm hoping this next PR would fix the issue #8042, but it would be still helpful if you could provide a little more details about your app to spot potential edge cases. |
@hi-ogawa Thanks for the quick update; here is my |
Could be related to #8038 ? |
This should be fixed by #8042. It will be available in the next nightly release if you want to try it out and report back. @paul-phan Looking at your manifest (thanks for sharing it, by the way!), the only files that will be deleted with the fix linked above will be |
I was just majorly blocked by this. The nightly works great! 🔥 |
I still facing this issue how can I resolve it? |
Reproduction
The reproduction requires a real-world like app, for example, a migrated
indie/blues
stack that usessideEffect
import or dynamic import.Previously, running
vite build -ssr
would generate abuild/index.js
file, and the server code would be placed inbuild/assets
folder. However, it appears that thebuild/assets
folder is now removed immediately after the build process is completed.I believe it is because of the newly added
writeBundle
code: 8cd31d6#diff-476a4eef80e39b35b744a556f1aec1762581b6864177c5f3a7ec9717ff415c28R750-R823System Info
Used Package Manager
npm
Expected Behavior
SRR entry output should be
build/index.js
andbuild/assets
folder.Actual Behavior
build/assets
folder is missing/removed.The text was updated successfully, but these errors were encountered: