File tree 2 files changed +2
-2
lines changed
packages/react-scripts/config
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ module.exports = {
88
88
// https://github.com/facebookincubator/create-react-app/issues/253
89
89
modules : [ 'node_modules' , paths . appNodeModules ] . concat (
90
90
// It is guaranteed to exist because we tweak it in `env.js`
91
- process . env . NODE_PATH . split ( path . delimiter )
91
+ process . env . NODE_PATH . split ( path . delimiter ) . filter ( Boolean )
92
92
) ,
93
93
// These are the reasonable defaults supported by the Node ecosystem.
94
94
// We also include JSX as a common component filename extension to support
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ module.exports = {
86
86
// https://github.com/facebookincubator/create-react-app/issues/253
87
87
modules : [ 'node_modules' , paths . appNodeModules ] . concat (
88
88
// It is guaranteed to exist because we tweak it in `env.js`
89
- process . env . NODE_PATH . split ( path . delimiter )
89
+ process . env . NODE_PATH . split ( path . delimiter ) . filter ( Boolean )
90
90
) ,
91
91
// These are the reasonable defaults supported by the Node ecosystem.
92
92
// We also include JSX as a common component filename extension to support
You can’t perform that action at this time.
0 commit comments