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
This is a proposal for the next Remix breaking version.
Currently the server gets bundled in a single file, this can be slow to evaluate, slowing down startup.
It also makes impossible to enable sourcemaps on the server if your server code is too large, I always get OOM errors if I enable sourcemaps on ssr build.
My proposal is to put each route as an entrypoint in the SSR build, then change the remix-serve package to import the needed routes only instead of the whole server bundle, this will speed up startup time.
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
-
This is a proposal for the next Remix breaking version.
Currently the server gets bundled in a single file, this can be slow to evaluate, slowing down startup.
It also makes impossible to enable sourcemaps on the server if your server code is too large, I always get OOM errors if I enable sourcemaps on ssr build.
My proposal is to put each route as an entrypoint in the SSR build, then change the
remix-serve
package to import the needed routes only instead of the whole server bundle, this will speed up startup time.before
after
Beta Was this translation helpful? Give feedback.
All reactions