From 6bd1a29f25756efd0d01a7ea9b531afd0578ed55 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 21 Jul 2023 14:48:54 -0700 Subject: [PATCH] fix: update svgr webpack config to use svg dimensions (#24747) (cherry picked from commit f856ba246e39709aa35461a7007177d4608f6c1b) --- superset-frontend/webpack.config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index a1516f25b076e..f0bab49244a18 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -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, }, }, ],