Replies: 1 comment 1 reply
-
What about doing the client and server code split changes before moving to Vite? For example moving all server-only code to *.server.ts files while still using esbuild. A longer path but a more incremental one. Then you could have a vite feature branch and merge the changes as you go to monitor progress. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I took a stab at migrating my project to Vite, and hit a hurdle splitting up client and server code, as described in the migration guide. The problem is that the necessary changes (whether renaming files or going wild with
serverOnly$()
) will produce a large diff, and I can't reasonably land it all at once on a project with multiple active contributors and branches.So what I'm after is a gentler migration path: ideally, opting in to the stricter client/server separation file-by-file, perhaps with a future flag in the old compiler, or maybe with the new Vite system in some kind of legacy mode.
Does something like this exist? Is it planned?
Beta Was this translation helpful? Give feedback.
All reactions