We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be53fa5 commit 7daff97Copy full SHA for 7daff97
packages/react-scripts/config/webpack.config.dev.js
@@ -123,7 +123,13 @@ module.exports = {
123
{
124
exclude: [
125
/\.html$/,
126
- /\.(js|jsx)$/,
+ // We have to write /\.(js|jsx)(\?.*)?$/ rather than just /\.(js|jsx)$/
127
+ // because you might change the hot reloading server from the custom one
128
+ // to Webpack's built-in webpack-dev-server/client?/, which would not
129
+ // get properly excluded by /\.(js|jsx)$/ because of the query string.
130
+ // Webpack 2 fixes this, but for now we include this hack.
131
+ // https://github.com/facebookincubator/create-react-app/issues/1713
132
+ /\.(js|jsx)(\?.*)?$/,
133
/\.css$/,
134
/\.json$/,
135
/\.svg$/
0 commit comments