What optimizations does Expo perform with `publish`

I was surprised to read that for example console.logs are not automatically removed by Expo in the production version. Does this mean my final bundled app contains print statements?


XCode essentially performs a full optimization and minification of the code base when publishing. This includes removing all the console logs, minification and any other kind of optimizations.

Can I get clarification on what is happening?

  • Do I really have to install another module to clean up my JS code?
  • Should I do a JS minification?
  • Are code comments removed?
1 Like

Hey @ericjames,

We minify your code bundle, but we don’t perform the other optimizations you mentioned like removal of code comments or console calls.



1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.