Commit 623e1bd1 authored by Luigi Maselli's avatar Luigi Maselli Committed by Dan Abramov
Browse files

Add React Native Web support (#407)

parent 8ae36c6e
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
...@@ -76,7 +76,8 @@ module.exports = { ...@@ -76,7 +76,8 @@ module.exports = {
// if we don't have a good solution, we should just make `babel-runtime` // if we don't have a good solution, we should just make `babel-runtime`
// a dependency in generated projects. // a dependency in generated projects.
// See https://github.com/facebookincubator/create-react-app/issues/255 // 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 // Resolve loaders (webpack plugins for CSS, images, transpilation) from the
......
...@@ -71,7 +71,8 @@ module.exports = { ...@@ -71,7 +71,8 @@ module.exports = {
// if we don't have a good solution, we should just make `babel-runtime` // if we don't have a good solution, we should just make `babel-runtime`
// a dependency in generated projects. // a dependency in generated projects.
// See https://github.com/facebookincubator/create-react-app/issues/255 // 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 // Resolve loaders (webpack plugins for CSS, images, transpilation) from the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment