exp publish in my project takes 45 minutes in total. 23 minutes to build the bundle for iOS and 17 minutes for Android. To even allow the transformation to run for this long I have to increase the timeout in the metro-bundler that’s set to 5 minutes.
Is there a way to use expo tooling to create a bundle for iOS or Android that doesn’t take tens of minutes?
Would it possible to use expo or the
State of the art
There are 2 approaches that I’ve seen and tried to get around this issue.
1. Skip the transformation
"map is not defined". I gave up here.
It’d be neat if
2. Perform transformations on a fake file
I tried this approach and I was able to generate a bundle, but I wasn’t able to use this approach with the existing exp publish command, since it calls the metro-bundler itself. For this to work, exp would have to call the bundler with a fake file itself. There’s a 4 line bash script named
build-husk at the root of the project if anyone wants to check it out.