Skip to content

Commit

Permalink
fix: update svgr webpack config to use svg dimensions (apache#24747)
Browse files Browse the repository at this point in the history
(cherry picked from commit f856ba2)
  • Loading branch information
eschutho authored and jinghua-qa committed Jul 24, 2023
1 parent 8200826 commit 6bd1a29
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions superset-frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,11 @@ const config = {
{
loader: '@svgr/webpack',
options: {
icon: true,
svgo: false,
svgoConfig: {
plugins: [{ removeViewBox: false }],
},
titleProp: true,
ref: true,
// this is the default value for the icon. Using other values
// here will replace width and height in svg with 1em
icon: false,
},
},
],
Expand Down

0 comments on commit 6bd1a29

Please sign in to comment.