Skip to content

Commit be20102

Browse files
AsaAyersTimer
authored andcommitted
Fix importing npm linked libraries (facebook#1359)
* Fix importing npm linked libraries * Update webpack.config.dev.js * Update webpack.config.prod.js
1 parent f8ed56d commit be20102

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
@@ -79,7 +79,7 @@ module.exports = {
7979
// We placed these paths second because we want `node_modules` to "win"
8080
// if there are any conflicts. This matches Node resolution mechanism.
8181
// https://github.com/facebookincubator/create-react-app/issues/253
82-
modules: ['node_modules'].concat(paths.nodePaths),
82+
modules: ['node_modules', paths.appNodeModules].concat(paths.nodePaths),
8383
// These are the reasonable defaults supported by the Node ecosystem.
8484
// We also include JSX as a common component filename extension to support
8585
// some tools, although we do not recommend using it, see:

config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = {
7878
// We placed these paths second because we want `node_modules` to "win"
7979
// if there are any conflicts. This matches Node resolution mechanism.
8080
// https://github.com/facebookincubator/create-react-app/issues/253
81-
modules: ['node_modules'].concat(paths.nodePaths),
81+
modules: ['node_modules', paths.appNodeModules].concat(paths.nodePaths),
8282
// These are the reasonable defaults supported by the Node ecosystem.
8383
// We also include JSX as a common component filename extension to support
8484
// some tools, although we do not recommend using it, see:

0 commit comments

Comments
 (0)