From 9e379179ee6451d64798311e05a086a51ec1cf6e Mon Sep 17 00:00:00 2001 From: Luigi Maselli Date: Tue, 9 Aug 2016 12:42:37 +0200 Subject: [PATCH] Add React Native Web support (#407) --- config/webpack.config.dev.js | 3 ++- config/webpack.config.prod.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 7893f09cf3a..6379d6af148 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -75,7 +75,8 @@ module.exports = { // if we don't have a good solution, we should just make `babel-runtime` // a dependency in generated projects. // See https://github.com/facebookincubator/create-react-app/issues/255 - 'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator') + 'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator'), + 'react-native': 'react-native-web' } }, // Resolve loaders (webpack plugins for CSS, images, transpilation) from the diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index d4a84332a50..575dc93a62d 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -64,7 +64,8 @@ module.exports = { // if we don't have a good solution, we should just make `babel-runtime` // a dependency in generated projects. // See https://github.com/facebookincubator/create-react-app/issues/255 - 'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator') + 'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator'), + 'react-native': 'react-native-web' } }, // Resolve loaders (webpack plugins for CSS, images, transpilation) from the