-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove UMD list from bundle size comparison code #162
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,9 +2,6 @@ | |||||||
import axios from 'axios'; | ||||||||
|
||||||||
function getMainBundleLabel(bundleId: string): string { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like by default we should use the In any case, if we want to keep |
||||||||
if (bundleId === 'packages/material-ui/build/umd/material-ui.production.min.js') { | ||||||||
return '@mui/material[umd]'; | ||||||||
} | ||||||||
if (bundleId === '@material-ui/core/Textarea') { | ||||||||
return 'TextareaAutosize'; | ||||||||
} | ||||||||
|
@@ -23,11 +20,6 @@ function getMainBundleLabel(bundleId: string): string { | |||||||
.replace(/^@material-ui\/unstyled$/, '@mui/core') | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Actually, it would make more sense to me to host the label logic in https://s3.eu-central-1.amazonaws.com/mui-org-ci/artifacts/master/latest/size-snapshot.json:
Suggested change
|
||||||||
// 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$/, '') | ||||||||
); | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to keep the contributor-dashboard-legacy tool?