diff --git a/.size-limit.js b/.size-limit.js
index b23d5054e2f66a..dcaea700d375c9 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -39,6 +39,6 @@ module.exports = [
name: 'The home page of the docs',
webpack: false,
path: '.next/bundles/pages/index.js',
- limit: '5.8 KB',
+ limit: '5.9 KB',
},
];
diff --git a/packages/material-ui-icons/builder.js b/packages/material-ui-icons/builder.js
index 61614a35b49956..dc6968dbda8a62 100755
--- a/packages/material-ui-icons/builder.js
+++ b/packages/material-ui-icons/builder.js
@@ -112,24 +112,23 @@ async function worker({ svgPath, options, renameFilter, template }) {
const data = await fse.readFile(svgPath, { encoding: 'utf8' });
// Remove hardcoded color fill before optimizing so that empty groups are removed
- const input = data.replace(/ fill="#010101"/g, '');
+ const input = data
+ .replace(/ fill="#010101"/g, '')
+ .replace(//g, '')
+ .replace(//g, '');
const result = await svgo.optimize(input);
// Extract the paths from the svg string
// Clean xml paths
const paths = result.data
- .replace(//g, '')
- .replace(/<\?xml[^>]*>/g, '')
.replace(/