friends-library-dev / issues

central location for dev-repo issues
0 stars 0 forks source link

remove alt-language strings from bundle (perf) #6

Closed jaredh159 closed 6 months ago

jaredh159 commented 4 years ago

The way i'm using my t and Translated component helpers I think is resulting in both languages being sent in javascript bundles, resulting in slightly larger file sizes than necessary, for use after React re-hydrates the DOM. I'd like to look into optimizing/fixing this, possibly by writing a custom babel plugin, or some other way.

jaredh159 commented 6 months ago

won't be necessary when conversion to RSC complete