From ca11772641119a9ab7925a606bac762512469f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Trys=C5=82a?= Date: Mon, 7 Oct 2019 13:46:14 +0200 Subject: [PATCH] add aliasFields to webpack config --- packages/haul-preset-0.59/src/defaultConfig.ts | 1 + packages/haul-preset-0.60/src/defaultConfig.ts | 1 + 2 files changed, 2 insertions(+) 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`,