bundler chokes on large files
See original GitHub issueDo you want to request a feature or report a bug? bug
What is the current behavior? Trying to require json files that are large, or even lots of small ones, causes bundler to choke without really reporting anything (stuck at X%). By large, I mean only a few megabytes. By lots of small ones, I mean like 10 jsons of 800kb each (trying to break the large file into small chunks).
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
.
import bigJson from './big.json'
What is the expected behavior? Bundler has no problem importing big json.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. metro 0.28.0, node 9.5.0, yarn 1.5.1, osx sierra
See #111 and #123 for other reports of the same problem, but issues were closed without resolution.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
@rafeca and what about the support for large js files? When can we expect that to be working in RN? On RN 0.57.1 the big js files are still not working. Any ETA on this?
Thank you
Hi @roesneb, unfortunately due to the different release cycles between metro and React Native, the fix has not reached RN stable yet. Good news is that the fix is going to be in the upcoming 0.56 version 😃