diff --git a/packages/metro-bundler/src/Resolver/polyfills/require.js b/packages/metro-bundler/src/Resolver/polyfills/require.js index 3c1f0b24..f0e9e646 100644 --- a/packages/metro-bundler/src/Resolver/polyfills/require.js +++ b/packages/metro-bundler/src/Resolver/polyfills/require.js @@ -177,6 +177,7 @@ function loadModuleImplementation(moduleId, module) { if (!__DEV__) { // $FlowFixMe: This is only sound because we never access `factory` again module.factory = undefined; + module.dependencyMap = undefined; } if (__DEV__) {