We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47edb5 commit 5ccced7Copy full SHA for 5ccced7
packages/react-scripts/config/webpack.config.ssr.js
@@ -113,8 +113,11 @@ module.exports = function(webpackEnv) {
113
// : {},
114
// },
115
{
116
- loader: require.resolve('css-loader/locals'),
117
- options: cssOptions,
+ // Since v2.0.0 css-loader/locals was removed in favour of exportOnlyLocals option
+ // So adding the option here in replacement as per
118
+ // https://github.com/webpack-contrib/css-loader#exportonlylocals
119
+ loader: require.resolve('css-loader'),
120
+ options: {...cssOptions, exportOnlyLocals: true},
121
},
122
123
// Options for PostCSS as we reference these options twice
0 commit comments