Skip to content

Commit 6a1d05f

Browse files
committed
Revert changes to webpack aliases
1 parent f40e9c5 commit 6a1d05f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ module.exports = {
116116
require.resolve('@babel/runtime/package.json')
117117
),
118118
// @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',
119122
},
120123
plugins: [
121124
// Prevents users from importing files from outside of src/ (or node_modules/).

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ module.exports = {
123123
require.resolve('@babel/runtime/package.json')
124124
),
125125
// @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',
126129
},
127130
plugins: [
128131
// Prevents users from importing files from outside of src/ (or node_modules/).

0 commit comments

Comments
 (0)