diff --git a/packages/metro-config/index.js b/packages/metro-config/index.js index ec7d935e041d76..c43b46a34b8cf9 100644 --- a/packages/metro-config/index.js +++ b/packages/metro-config/index.js @@ -42,7 +42,7 @@ function getDefaultConfig( resolver: { resolverMainFields: ['react-native', 'browser', 'main'], platforms: ['android', 'ios'], - unstable_conditionNames: ['require', 'react-native'], + unstable_conditionNames: ['require', 'import', 'react-native'], }, serializer: { getPolyfills: () => require('@react-native/js-polyfills')(),