mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
57c291bbc4
Summary: Fantom was disabling Metro hierarchical lookup in all cases when `JS_DIR` is set. The intention is that `node_modules` folders other than the configured `JS_DIR/public/node_modules` are not used. However, this leads to incorrect resolution where a transitive dependency is not hoisted. If the origin of the resolution is already inside `node_modules`, we must perform a hierarchical lookup to avoid picking up just whichever version happens to be hoisted to `node_modules` root. Changelog: [Internal] Reviewed By: huntie Differential Revision: D69303559 fbshipit-source-id: 12068fb0bebb8c2f81b64c23b952a623cb6fd792