I see my Solid Start app downloading tons of ts, tsx, scss files - Attaching Screenshot

Basically most of the project file are being downloaded. Isn't the framework supposed to bundle them up? What am I missing?
No description
6 Replies
_JS
_JS8mo ago
Application code is split into multiple bundles instead of a single huge bundle to improve load time By "most of the project file are being downloaded", do you mean that you're downloading a bundle that you're not supposed to download?
Brendonovich
Brendonovich8mo ago
In development vite will pretty much serve every file your project depends on individually, including dependencies. In production most of them will be bundled into a few files, so you won't see this behaviour
Sudhagar
SudhagarOP8mo ago
>In production most of them will be bundled into a few files, so you won't see this behaviour @Brendonovich Right. This is production, so not sure why the files are served individually
Brendonovich
Brendonovich8mo ago
are you certain? ts/tsx files won't be used in prod, it'll just be js
Sudhagar
SudhagarOP8mo ago
my bad. This may be from dev. This is how my production looks like.
No description
Brendonovich
Brendonovich8mo ago
yeah that looks more appropriate
Want results from more Discord servers?
Add your server