File tree 2 files changed +6
-0
lines changed
packages/react-scripts/config
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ module.exports = {
116
116
require . resolve ( '@babel/runtime/package.json' )
117
117
) ,
118
118
// @remove -on-eject-end
119
+ // Support React Native Web
120
+ // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
121
+ 'react-native' : 'react-native-web' ,
119
122
} ,
120
123
plugins : [
121
124
// Prevents users from importing files from outside of src/ (or node_modules/).
Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ module.exports = {
123
123
require . resolve ( '@babel/runtime/package.json' )
124
124
) ,
125
125
// @remove -on-eject-end
126
+ // Support React Native Web
127
+ // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
128
+ 'react-native' : 'react-native-web' ,
126
129
} ,
127
130
plugins : [
128
131
// Prevents users from importing files from outside of src/ (or node_modules/).
You can’t perform that action at this time.
0 commit comments