Skip to content

Commit

Permalink
update comment about json-loader to explain why it is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
viankakrisna committed Jan 16, 2018
1 parent f7100df commit 74d3202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ module.exports = {
// match the requirements. When no loader matches it will fall
// back to the "file" loader at the end of the loader list.
oneOf: [
// This is included by default, but when we add .json to eslint-loader
// test regex the compiler fails to recognize json files.
// Necessary because we add .json test in eslint-loader
// https://webpack.js.org/guides/migrating/#json-loader-is-not-required-anymore
{
test: /\.json$/,
loader: require.resolve('json-loader'),
Expand Down
4 changes: 2 additions & 2 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ module.exports = {
// match the requirements. When no loader matches it will fall
// back to the "file" loader at the end of the loader list.
oneOf: [
// This is included by default, but when we add .json to eslint-loader
// test regex the compiler fails to recognize json files.
// Necessary because we add .json test in eslint-loader
// https://webpack.js.org/guides/migrating/#json-loader-is-not-required-anymore
{
test: /\.json$/,
loader: require.resolve('json-loader'),
Expand Down

0 comments on commit 74d3202

Please sign in to comment.