-
Notifications
You must be signed in to change notification settings - Fork 665
Description
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Metro will either run out of memory or it will give up after 5 minutes of waiting to transform the JS file.
This was first reported here facebook/react-native#8475 and then again here facebook/react-native#12590
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install
and yarn test
.
I have a repro repo here https://github.com/jeaye/react-native-packager-bug -- it's not in the yarn
format, since I don't know what that is.
What is the expected behavior?
The transformation completes in a timely fashion or metro waits long enough for the transformation to finish in however long it needs. In order to achieve the latter, my production build script currently contains the following:
metro=../node_modules/metro-bundler/src/JSTransformer/index.js
sed -i 's/\(TRANSFORM_TIMEOUT_INTERVAL\) = .*;/\1 = 901000;/g' "$metro" || true
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
React Native: 0.50.4
babel-preset-react-native: 4.0.0
Metro (comes with RN): 0.20.3
Node: 9.3.0
OS: Arch Linux x86_64