Unverified Commit 2150693d authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Upgrade svgr to v2 and disable Prettier/SVGO (#5062)

parent e88809f4
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 5 additions and 3 deletions
+5 -3
...@@ -251,7 +251,8 @@ module.exports = { ...@@ -251,7 +251,8 @@ module.exports = {
{ {
loaderMap: { loaderMap: {
svg: { svg: {
ReactComponent: 'svgr/webpack![path]', ReactComponent:
'@svgr/webpack?-prettier,-svgo![path]',
}, },
}, },
}, },
......
...@@ -289,7 +289,8 @@ module.exports = { ...@@ -289,7 +289,8 @@ module.exports = {
{ {
loaderMap: { loaderMap: {
svg: { svg: {
ReactComponent: 'svgr/webpack![path]', ReactComponent:
'@svgr/webpack?-prettier,-svgo![path]',
}, },
}, },
}, },
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"dependencies": { "dependencies": {
"@babel/core": "7.1.0", "@babel/core": "7.1.0",
"@babel/runtime": "7.0.0", "@babel/runtime": "7.0.0",
"@svgr/webpack": "2.4.1",
"autoprefixer": "9.1.5", "autoprefixer": "9.1.5",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0", "babel-eslint": "9.0.0",
...@@ -63,7 +64,6 @@ ...@@ -63,7 +64,6 @@
"resolve": "1.8.1", "resolve": "1.8.1",
"sass-loader": "7.1.0", "sass-loader": "7.1.0",
"style-loader": "0.23.0", "style-loader": "0.23.0",
"svgr": "1.9.2",
"sw-precache-webpack-plugin": "0.11.5", "sw-precache-webpack-plugin": "0.11.5",
"terser-webpack-plugin": "1.1.0", "terser-webpack-plugin": "1.1.0",
"thread-loader": "1.2.0", "thread-loader": "1.2.0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment