You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however vinxi build still generates a bazillion files in .output/public/_build/assets,
like one .js for every route
and all the route .js just import from the client.js e.g. import{E as f}from"./client-aaaa.js";export{f as default};
That is completely stupid and causes a HTTP GET on every navigation just to fetch that route js file that imports from the client.js anyways …
How can I get rid of this behavior and just have one single combined js file?
I essentially want one initial HTTP GET js for the one bundled js file and then have my SPA working entirely offline even on navigation!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I try to build a CSR SPA.
My config is:
however
vinxi build
still generates a bazillion files in.output/public/_build/assets
,like one .js for every route
and all the route .js just import from the client.js e.g.
import{E as f}from"./client-aaaa.js";export{f as default};
That is completely stupid and causes a HTTP GET on every navigation just to fetch that route js file that imports from the client.js anyways …
How can I get rid of this behavior and just have one single combined js file?
I essentially want one initial HTTP GET js for the one bundled js file and then have my SPA working entirely offline even on navigation!
Beta Was this translation helpful? Give feedback.
All reactions