mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 09:55:43 +08:00
Fix importing npm linked libraries (#1359)
* Fix importing npm linked libraries * Update webpack.config.dev.js * Update webpack.config.prod.js
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user