Skip to content

Commit

Permalink
Upgrade svgr to v2 and disable Prettier/SVGO (#5062)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 21, 2018
1 parent e88809f commit 2150693
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ module.exports = {
{
loaderMap: {
svg: {
ReactComponent: 'svgr/webpack![path]',
ReactComponent:
'@svgr/webpack?-prettier,-svgo![path]',
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ module.exports = {
{
loaderMap: {
svg: {
ReactComponent: 'svgr/webpack![path]',
ReactComponent:
'@svgr/webpack?-prettier,-svgo![path]',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dependencies": {
"@babel/core": "7.1.0",
"@babel/runtime": "7.0.0",
"@svgr/webpack": "2.4.1",
"autoprefixer": "9.1.5",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
Expand Down Expand Up @@ -63,7 +64,6 @@
"resolve": "1.8.1",
"sass-loader": "7.1.0",
"style-loader": "0.23.0",
"svgr": "1.9.2",
"sw-precache-webpack-plugin": "0.11.5",
"terser-webpack-plugin": "1.1.0",
"thread-loader": "1.2.0",
Expand Down

0 comments on commit 2150693

Please sign in to comment.