Skip to content

Commit

Permalink
Fix importing npm linked libraries (#1359)
Browse files Browse the repository at this point in the history
* Fix importing npm linked libraries

* Update webpack.config.dev.js

* Update webpack.config.prod.js
  • Loading branch information
AsaAyers authored and Timer committed Mar 23, 2017
1 parent bc6fc95 commit 47a8148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules'].concat(paths.nodePaths),
modules: ['node_modules', paths.appNodeModules].concat(paths.nodePaths),
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
// some tools, although we do not recommend using it, see:
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = {
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules'].concat(paths.nodePaths),
modules: ['node_modules', paths.appNodeModules].concat(paths.nodePaths),
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
// some tools, although we do not recommend using it, see:
Expand Down

0 comments on commit 47a8148

Please sign in to comment.