Commit b18baa0b authored by Piotrek Dąbrowski's avatar Piotrek Dąbrowski
Browse files

Fix module resolution for yarn linked components

1 merge request!6207[react-scripts] Fix module resolution for yarn linked components
Showing with 1 addition and 1 deletion
+1 -1
......@@ -258,7 +258,7 @@ module.exports = function(webpackEnv) {
// 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/facebook/create-react-app/issues/253
modules: ['node_modules'].concat(
modules: [path.resolve('node_modules'), 'node_modules'].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment