From 5d7d3a7a6d4cd59e9f51bfb1b3e6da73e8d10758 Mon Sep 17 00:00:00 2001 From: Arturo Guzman Date: Thu, 2 Mar 2017 14:45:35 -0500 Subject: [PATCH] Add support building react-native app --- packages/neutrino-preset-react/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/neutrino-preset-react/index.js b/packages/neutrino-preset-react/index.js index 2c0efc9..0467283 100644 --- a/packages/neutrino-preset-react/index.js +++ b/packages/neutrino-preset-react/index.js @@ -20,6 +20,7 @@ module.exports = (neutrino) => { config.resolve.modules.add(MODULES); config.resolve.extensions.add('.jsx'); + config.resolve.alias.set('react-native', 'react-native-web'); config.resolveLoader.modules.add(MODULES); config.externals({ 'react/addons': true,