Skip to content

Static data bundling #1032

@tnspacetime

Description

@tnspacetime

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, vite

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions