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
  • Loading branch information
eschutho authored Jul 21, 2023
1 parent abb8e28 commit f856ba2
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 f856ba2

Please sign in to comment.