-
-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Labels
Description
Related plugins
Describe the bug
I don’t fully understand if this is a a bug or expected. I was testing out the ssg example (more precisely, borrowing the ssg code to use in the starter). I saw that while ssg worked, the raw source files (from glob) are bundled into the rsc bundle also, significantly increasing the size in case you have a lot of source files. I attempted to fix it in my case by running two builds. It worked (I checked everything and even deployed on cloudflare), but it seemed a bit hacky. Is the behaviour expected, and do we have a “better fix”?
Reproduction
N/A
Steps to reproduce
Attempt to do ssg and check the rsc bundle. The source files will be included in the bundle.
System Info
bun, viteUsed Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.