Skip to content

Commit 9e37917

Browse files
grigiogaearon
authored andcommitted
Add React Native Web support (#407)
1 parent c7849e2 commit 9e37917

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/webpack.config.dev.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ module.exports = {
7575
// if we don't have a good solution, we should just make `babel-runtime`
7676
// a dependency in generated projects.
7777
// See https://github.com/facebookincubator/create-react-app/issues/255
78-
'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator')
78+
'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator'),
79+
'react-native': 'react-native-web'
7980
}
8081
},
8182
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the

config/webpack.config.prod.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ module.exports = {
6464
// if we don't have a good solution, we should just make `babel-runtime`
6565
// a dependency in generated projects.
6666
// See https://github.com/facebookincubator/create-react-app/issues/255
67-
'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator')
67+
'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator'),
68+
'react-native': 'react-native-web'
6869
}
6970
},
7071
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the

0 commit comments

Comments
 (0)