diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 9f3131b0660..03e6b7ad4ca 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -76,6 +76,10 @@ module.exports = { path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'), }, resolve: { + // This will tell webpack to not resolve symlinks to actual folders + // Symlinks into `src` folder will work with this option + // default value is set to `true` + symlinks: false, // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" // if there are any conflicts. This matches Node resolution mechanism. diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 3b2a2068db2..fb0451102a2 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -82,6 +82,10 @@ module.exports = { .replace(/\\/g, '/'), }, resolve: { + // This will tell webpack to not resolve symlinks to actual folders + // Symlinks into `src` folder will work with this option + // default value is set to `true` + symlinks: false, // This allows you to set a fallback for where Webpack should look for modules. // We placed these paths second because we want `node_modules` to "win" // if there are any conflicts. This matches Node resolution mechanism.