Useful or not, from you.
metro bundleReleaseJsAndAssets slow for react-native 0.60 / node v12 combo

Hi there!

I believe I am using the most recent metro, or very near it, as this is with react-native 0.60 rc3 which has a 0.54.1 version of metro in package-lock.json after using react-native cli to do an app init using the RN0.60RC3 template

What is the current behavior?

For some reason, which this combination, it is taking a great deal more time to generate the release bundle then with any other combination of react-native 0.59 vs 0.60 and node 8, 10, 11 or "node" (currently 12.5)

I'm testing them all as part of the jetifier project in CI and this was noticeable.

I have a test script at rn-androidx-demo which use as the test suite for jetifier and the link to the build that shows the problem is here:

https://travis-ci.com/mikehardy/jetifier/jobs/212061157

You can see all an identical job but with node 11 here: https://travis-ci.com/mikehardy/jetifier/jobs/212061152 - it's 5 minutes different

That's a useful answer
Without any help

@mikehardy it's an issue with node 12.5. Downgrade to 12.4 or earlier and the issue goes away.

I agree it's strange it only surfaced with RN 0.60, but it's fine with RN 0.59

https://github.com/facebook/react-native/issues/25650#issuecomment-511822738 https://github.com/react-native-community/cli/issues/485#issuecomment-509210382