From 3a56e1c2a7ab2032dcaf00938d8ecbb8178889fb Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Thu, 9 May 2024 13:03:59 +0530 Subject: [PATCH 1/3] Remove umd related code --- contributor-dashboard-legacy/src/pages/SizeComparison.tsx | 5 ----- tools-public/toolpad/resources/bundleSizeQueries.ts | 3 --- 2 files changed, 8 deletions(-) diff --git a/contributor-dashboard-legacy/src/pages/SizeComparison.tsx b/contributor-dashboard-legacy/src/pages/SizeComparison.tsx index 3b2b5be..b2be042 100644 --- a/contributor-dashboard-legacy/src/pages/SizeComparison.tsx +++ b/contributor-dashboard-legacy/src/pages/SizeComparison.tsx @@ -262,11 +262,6 @@ const CompareTable = memo(function CompareTable({ }); function getMainBundleLabel(bundleId: string): string { - if ( - bundleId === "packages/material-ui/build/umd/material-ui.production.min.js" - ) { - return "@mui/material[umd]"; - } if (bundleId === "@material-ui/core/Textarea") { return "TextareaAutosize"; } diff --git a/tools-public/toolpad/resources/bundleSizeQueries.ts b/tools-public/toolpad/resources/bundleSizeQueries.ts index ac936ae..f924a8b 100644 --- a/tools-public/toolpad/resources/bundleSizeQueries.ts +++ b/tools-public/toolpad/resources/bundleSizeQueries.ts @@ -2,9 +2,6 @@ import axios from 'axios'; function getMainBundleLabel(bundleId: string): string { - if (bundleId === 'packages/material-ui/build/umd/material-ui.production.min.js') { - return '@mui/material[umd]'; - } if (bundleId === '@material-ui/core/Textarea') { return 'TextareaAutosize'; } From f44cb581df58ab264fa1a692febb228ce6f38857 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Thu, 9 May 2024 13:14:21 +0530 Subject: [PATCH 2/3] re-run CI From 8d81c29b2af669c74aa8c466026e74feb7883116 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Thu, 9 May 2024 13:35:48 +0530 Subject: [PATCH 3/3] remove replace code --- tools-public/toolpad/resources/bundleSizeQueries.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools-public/toolpad/resources/bundleSizeQueries.ts b/tools-public/toolpad/resources/bundleSizeQueries.ts index f924a8b..f563c85 100644 --- a/tools-public/toolpad/resources/bundleSizeQueries.ts +++ b/tools-public/toolpad/resources/bundleSizeQueries.ts @@ -20,11 +20,6 @@ function getMainBundleLabel(bundleId: string): string { .replace(/^@material-ui\/unstyled$/, '@mui/core') // org rename .replace(/^@material-ui\/([\w-]+)$/, '@mui/$1') - // path renames - .replace( - /^packages\/material-ui\/material-ui\.production\.min\.js$/, - 'packages/mui-material/material-ui.production.min.js', - ) .replace(/^@material-ui\/core\//, '') .replace(/\.esm$/, '') );