![Mark Dalgleish Profile](https://pbs.twimg.com/profile_images/754886061872979968/BzaOWhs1_x96.jpg)
Mark Dalgleish
@markdalgleish
Followers
72K
Following
47K
Statuses
25K
🦄 CSS Modules co-creator / 💿 @remix_run + React Router at @shopify / @MelbJS organiser / 🧁 Vanilla Extract / dad x4
Melbourne, Australia
Joined February 2011
COMING SOON: Experimental @vite_js Environment API support in React Router v7. Check this out — a single `vite build` command can co-ordinate a full client + multi-server build. Previously this was only possible via the `react-router` CLI. We're “just a Vite plugin” again 😎
6
13
287
@tweetmonster999 @vite_js @kentcdodds @ryanflorence You should have access to regular old environment variables in there?
1
0
2
@oleg008 @ryanflorence It’s an entry point to the build so it could have heaps of stuff in it.
0
0
3
Yep. Initially I thought this work would be trivial because I hoped I’d be able to simply create a virtual module that reexports anything I wanted to put in the chunk, but I hit up against the limitation that chunking didn’t go smaller than the module level in Rollup. I hadn’t heard that about Turbopack. Is anyone else doing this?
1
0
0