-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[code-infra] Make error code extraction independent of build #46865
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
Conversation
Netlify deploy previewhttps://deploy-preview-46865--material-ui.netlify.app/ Bundle size report
|
4382bee
to
b01b080
Compare
72c5ade
to
03a2c16
Compare
03a2c16
to
5b4c7c9
Compare
5b4c7c9
to
449ba14
Compare
'@mui/internal-babel-plugin-minify-errors', | ||
{ | ||
missingError, | ||
missingError: 'annotate', |
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.
We could consider 'throw'
here. I believe the idea behind 'annotate'
is that in CI you run a search on built files for these annotations, but we don't do that. We can try this later though.
"docs:mdicons:synonyms": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js,.mjs\" ./docs/scripts/updateIconSynonyms && pnpm prettier", | ||
"docs:zipRules": "cd docs && rm mui-vale.zip && zip -r mui-vale.zip mui-vale && cd ../ && pnpm vale sync", | ||
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 1 build:stable", | ||
"extract-error-codes": "code-infra extract-error-codes --errorCodesPath docs/public/static/error-codes.json --skip @mui/core-downloads-tracker @mui/envinfo @mui/docs @mui/codemod @mui/icons-material", |
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.
Nice, moving this to a global CLI fixes the concurrency problem. I get why this CLI can be superfast now 🤩
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.
love it
449ba14
to
500d6ba
Compare
500d6ba
to
8714f5a
Compare
Also migrated
markdownlint
command to use config fromcode-infra
.Main PR - mui/mui-public#641
Perf improvements -
45sec
in master vs3s
with this PR.Can be tweaked further as needed to add/remove packages into/from the extraction process.