Skip to content

Conversation

brijeshb42
Copy link
Contributor

@brijeshb42 brijeshb42 commented Jul 28, 2025

See original PR - mui/mui-public#408 for full context and description.

@brijeshb42 brijeshb42 added the scope: code-infra Changes related to the core-infra product. label Jul 28, 2025
@mui-bot
Copy link

mui-bot commented Jul 28, 2025

Netlify deploy preview

https://deploy-preview-46614--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 cc3242b

@brijeshb42 brijeshb42 force-pushed the migrate-build branch 2 times, most recently from 122ca48 to 6435e26 Compare July 31, 2025 14:55
@brijeshb42 brijeshb42 force-pushed the migrate-build branch 2 times, most recently from 0e5759f to dd11aaa Compare August 1, 2025 11:32
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 1, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 7, 2025
@brijeshb42 brijeshb42 force-pushed the migrate-build branch 5 times, most recently from c7e7703 to 18e6a1b Compare August 11, 2025 06:37
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 11, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 11, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 11, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 11, 2025
@brijeshb42 brijeshb42 force-pushed the migrate-build branch 3 times, most recently from 65484d7 to 953ff45 Compare August 11, 2025 17:14
@brijeshb42 brijeshb42 marked this pull request as ready for review August 11, 2025 17:32
@brijeshb42 brijeshb42 requested a review from a team August 11, 2025 17:32
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 12, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 12, 2025
@brijeshb42 brijeshb42 force-pushed the migrate-build branch 2 times, most recently from 3419612 to 11c0241 Compare August 12, 2025 10:10
@Janpot
Copy link
Member

Janpot commented Aug 13, 2025

Any idea about the bundle size differences?

@@ -1,24 +1,29 @@
// @ts-check
Copy link
Member

Choose a reason for hiding this comment

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

Why remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added back. Forgot to copy this into the new file.

@@ -3,7 +3,6 @@
"version": "2.0.12",
"author": "MUI Team",
"description": "Utilities supporting MUI libraries build and docs generation. This is an internal package not meant for general use.",
"main": "build/index.js",
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't have to part of this scope, but maybe we could do some "package.json linting" in our build step? To error or warn on things like this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do linting for exports field right now (the one without *). main field is anyways overwritten based on the presence of build/index.js.
But I agree, we can always add more checks, even for the ones with *.

Copy link
Member

Choose a reason for hiding this comment

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

yes, I mean if it's overwritten, we may as well just warn at least

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted. Will add in code-infra.

@@ -55,7 +55,7 @@ async function run(argv) {
);
}

const babelConfigPath = path.resolve(getWorkspaceRoot(), 'babel.config.js');
const babelConfigPath = path.resolve(getWorkspaceRoot(), 'babel.config.mjs');
Copy link
Member

Choose a reason for hiding this comment

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

Will we still need scripts/build.mjs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've kept it for now. Once all the repo PRs are merged, we can delete it in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

but these may not necessarily have babel.config.mjs yet

@brijeshb42
Copy link
Contributor Author

Any idea about the bundle size differences?

This is the last blocker that I am investigating currently.

@brijeshb42 brijeshb42 force-pushed the migrate-build branch 3 times, most recently from d5c148f to a59b6f1 Compare August 13, 2025 09:01
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 13, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Aug 13, 2025
@brijeshb42 brijeshb42 force-pushed the migrate-build branch 2 times, most recently from 5671f7e to 900ef81 Compare August 13, 2025 14:33
@brijeshb42
Copy link
Contributor Author

@Janpot All issues have been fixed.

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.

Awesome

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Tested with the PR release packages, works fine.

@brijeshb42 brijeshb42 merged commit d632373 into mui:master Aug 14, 2025
19 checks passed
@oliviertassinari oliviertassinari changed the title [infra] Migrate build command to code-infra [code-infra] Migrate build command to code-infra Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Changes related to the core-infra product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants