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
Used Package Manager
npm
Logs
No response
Validations
Related plugins
plugin-react
plugin-react-swc
plugin-react-oxc
plugin-rsc
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
Used Package Manager
npm
Logs
No response
Validations