Skip to content

Commit 6c053d3

Browse files
authored
Update webpack.config.dev.js
You do not have use alias for thing you do. modulesDirectories should work. facebook#1136 facebook#276 facebook#253 The change breaks tooling and you should not use it until issues are resolved with it.
1 parent 29c1835 commit 6c053d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ module.exports = {
8787
// some tools, although we do not recommend using it, see:
8888
// https://github.com/facebookincubator/create-react-app/issues/290
8989
extensions: ['.js', '.json', '.jsx', ''],
90+
modulesDirectories: [
91+
'src',
92+
'node_modules'
93+
],
9094
alias: {
91-
'@src': paths.appSrc,
9295
// Support React Native Web
9396
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
9497
'react-native': 'react-native-web'

0 commit comments

Comments
 (0)