diff --git a/packages/metro/src/lib/polyfills/require.js b/packages/metro/src/lib/polyfills/require.js index 88f4109b..a1212168 100644 --- a/packages/metro/src/lib/polyfills/require.js +++ b/packages/metro/src/lib/polyfills/require.js @@ -296,7 +296,7 @@ if (__DEV__) { parents.push(...inverseDependencies[notAccepted[i]]); } - return acceptAll(parents, inverseDependencies); + return parents.length == 0; }; const accept = function(