Skip to content

Commit 854d430

Browse files
authored
Don't use app node_modules folder as a resolve fallback (facebook#3884)
1 parent 4a40d29 commit 854d430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = {
9595
// We placed these paths second because we want `node_modules` to "win"
9696
// if there are any conflicts. This matches Node resolution mechanism.
9797
// https://github.com/facebookincubator/create-react-app/issues/253
98-
modules: ['node_modules', paths.appNodeModules].concat(
98+
modules: ['node_modules'].concat(
9999
// It is guaranteed to exist because we tweak it in `env.js`
100100
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
101101
),

config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = {
102102
// We placed these paths second because we want `node_modules` to "win"
103103
// if there are any conflicts. This matches Node resolution mechanism.
104104
// https://github.com/facebookincubator/create-react-app/issues/253
105-
modules: ['node_modules', paths.appNodeModules].concat(
105+
modules: ['node_modules'].concat(
106106
// It is guaranteed to exist because we tweak it in `env.js`
107107
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
108108
),

0 commit comments

Comments
 (0)