diff --git a/packages/haul-preset-0.59/src/defaultConfig.ts b/packages/haul-preset-0.59/src/defaultConfig.ts index a2b8da52..ec1bd980 100644 --- a/packages/haul-preset-0.59/src/defaultConfig.ts +++ b/packages/haul-preset-0.59/src/defaultConfig.ts @@ -152,6 +152,7 @@ export default function getDefaultConfig( * First entry takes precedence. */ mainFields: ['react-native', 'browser', 'main'], + aliasFields: ['react-native'], extensions: [ `.${platform}.js`, `.${platform}.jsx`, diff --git a/packages/haul-preset-0.60/src/defaultConfig.ts b/packages/haul-preset-0.60/src/defaultConfig.ts index 17f1fa59..f9e616a7 100644 --- a/packages/haul-preset-0.60/src/defaultConfig.ts +++ b/packages/haul-preset-0.60/src/defaultConfig.ts @@ -142,6 +142,7 @@ export default function getDefaultConfig( * First entry takes precedence. */ mainFields: ['react-native', 'browser', 'main'], + aliasFields: ['react-native'], extensions: [ `.${platform}.js`, `.${platform}.jsx`,