We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ad5cb5 + 4139855 commit 5b735beCopy full SHA for 5b735be
packages/react-scripts/config/webpack.config.js
@@ -62,6 +62,10 @@ const sassModuleRegex = /\.module\.(scss|sass)$/;
62
63
const workspacesConfig = yarnWorkspaces.init(paths);
64
65
+// Change directory to the workspace root, to resolve file paths in relation
66
+// to the workspace. Useful for backtracking errors, in context of the workspace root!
67
+process.chdir(workspacesConfig.root);
68
+
69
// This is the production and development configuration.
70
// It is focused on developer experience, fast rebuilds, and a minimal bundle.
71
module.exports = function(webpackEnv) {
0 commit comments