Skip to content

Conversation

brijeshb42
Copy link
Contributor

@brijeshb42 brijeshb42 commented Sep 4, 2025

Also migrated markdownlint command to use config from code-infra.

Main PR - mui/mui-public#641

Perf improvements -

45sec in master vs 3s with this PR.

Can be tweaked further as needed to add/remove packages into/from the extraction process.

@brijeshb42 brijeshb42 added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Sep 4, 2025
@mui-bot
Copy link

mui-bot commented Sep 4, 2025

Netlify deploy preview

https://deploy-preview-46865--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 8714f5a

@brijeshb42 brijeshb42 force-pushed the extract-error-codes branch 7 times, most recently from 4382bee to b01b080 Compare September 4, 2025 17:59
@brijeshb42 brijeshb42 requested a review from a team September 4, 2025 18:04
@brijeshb42 brijeshb42 force-pushed the extract-error-codes branch 6 times, most recently from 72c5ade to 03a2c16 Compare September 5, 2025 13:03
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 5, 2025
@oliviertassinari oliviertassinari changed the title [infra] Make error code extraction independent of build [code-infra] Make error code extraction independent of build Sep 6, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 8, 2025
'@mui/internal-babel-plugin-minify-errors',
{
missingError,
missingError: 'annotate',
Copy link
Member

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",
Copy link
Member

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 🤩

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it

@brijeshb42 brijeshb42 enabled auto-merge (squash) September 8, 2025 10:44
@brijeshb42 brijeshb42 merged commit d1c8217 into mui:master Sep 8, 2025
18 checks passed
@brijeshb42 brijeshb42 deleted the extract-error-codes branch September 8, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants