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?
6 Replies
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?
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
>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
are you certain? ts/tsx files won't be used in prod, it'll just be js
my bad. This may be from dev. This is how my production looks like.
yeah that looks more appropriate