Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
b18baa0b
Commit
b18baa0b
authored
6 years ago
by
Piotrek Dąbrowski
Browse files
Options
Download
Email Patches
Plain Diff
Fix module resolution for yarn linked components
parent
fd382772
github/fork/british-council/fix/yarn-link-lerna
1 merge request
!6207
[react-scripts] Fix module resolution for yarn linked components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.js
+1
-1
packages/react-scripts/config/webpack.config.js
with
1 addition
and
1 deletion
+1
-1
packages/react-scripts/config/webpack.config.js
+
1
-
1
View file @
b18baa0b
...
...
@@ -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
)
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets