Skip to content

Commit

Permalink
fix(react-scripts): resolve webpack loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Sep 3, 2021
1 parent 1761c04 commit b59ce77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ module.exports = function (webpackEnv) {
enforce: 'pre',
exclude: /@babel(?:\/|\\{1,2})runtime/,
test: /\.(js|mjs|jsx|ts|tsx|css)$/,
use: 'source-map-loader',
loader: require.resolve('source-map-loader'),
},
{
// "oneOf" will traverse all following loaders until one will
Expand Down Expand Up @@ -364,7 +364,7 @@ module.exports = function (webpackEnv) {
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
loader: require.resolve('@svgr/webpack'),
options: {
prettier: false,
svgo: false,
Expand All @@ -376,7 +376,7 @@ module.exports = function (webpackEnv) {
},
},
{
loader: 'file-loader',
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash].[ext]',
},
Expand Down

0 comments on commit b59ce77

Please sign in to comment.