This video is packed with information on how Facebook uses of CSS-in-JS, code splitting, GraphQL ability to require code... I highly recommend watching if you're interested in the space.https://developers.facebook.com/videos/2019/building-the-new-facebookcom-with-react-graphql-and-relay/ …
-
-
> a Babel-implementation do you mean a fork of Babel or a Babel plugin to hoist/extract to static? > It’s hard because as soon as FB open sources a CSS-in-JS solution then React devs will flock to it Good point! Maybe a detailed technical write-up (tease) would be enough
-
There’s a Babel plugin that does all the processing and returns code that looks like: StyleSheet.inject(‘CSS HERE’); That’s done in prod and dev. In production though the extraction is as easy as taking the CSS and removing it from the JS.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 
huh?

I've been working on what seems a similar solution but I'd rather not reinvent the wheel and wait for a stable one battle tested at your scale