Skip to content

[core] Remove modern bundles #17359

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

Merged
merged 4 commits into from
Apr 15, 2025
Merged

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Apr 14, 2025

Follow up on mui/material-ui#45808.

Waiting for mui/material-ui#45912 to remove the modern folder entirely.
For now, the types are still copied there.
Will add a monorepo bump to this PR.

☝️ Done.

It's only a slight breaking change as mentioned here: mui/material-ui#45808 (comment).

@LukasTy LukasTy added core Infrastructure work going on behind the scenes breaking change enhancement This is not a bug, nor a new feature scope: code-infra Specific to the core-infra product v8.x labels Apr 14, 2025
@LukasTy LukasTy self-assigned this Apr 14, 2025
@LukasTy LukasTy added this to the 8.0.0 milestone Apr 14, 2025
@LukasTy LukasTy requested review from a team April 14, 2025 13:33
@@ -11,17 +11,15 @@
"homepage": "https://mui.com/x/introduction/licensing/",
"sideEffects": [
"./utils/licenseInfo.js",
"./modern/utils/licenseInfo.js",
"./node/utils/licenseInfo.js"
Copy link
Member Author

Choose a reason for hiding this comment

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

node export no longer exists.

@@ -11,17 +11,15 @@
"homepage": "https://mui.com/x/introduction/licensing/",
"sideEffects": [
"./utils/licenseInfo.js",
"./modern/utils/licenseInfo.js",
"./node/utils/licenseInfo.js"
"./esm/utils/licenseInfo.js"
Copy link
Member

Choose a reason for hiding this comment

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

🤔 This shouldn't be necessary I believ

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean the side effects altogether? 🤔
Or the change of paths? 🤔
node folder no longer exists, same for modern...

Copy link
Member

@Janpot Janpot Apr 14, 2025

Choose a reason for hiding this comment

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

this whole "sideEffects" property is copied to the package.json in the ./esm folder, so the relative location should be the same, i.e. "./esm/utils/licenseInfo.js" won't point at anything

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for spotting this. 🙏

Copy link
Member Author

Choose a reason for hiding this comment

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

On the other hand, the package.json on the esm folder looks like this:
Screenshot 2025-04-14 at 22 09 27

Is it expected? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

no, it's not 🤔 This is supposed to kick in. I can take a look tomorrow.

Copy link
Member

@cherniavskii cherniavskii left a comment

Choose a reason for hiding this comment

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

Nice, the packages should build faster now 👍🏻

@LukasTy
Copy link
Member Author

LukasTy commented Apr 15, 2025

Nice, the packages should build faster now 👍🏻

It's only very marginal.
~15s reduction on codesandbox. 😉

Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 15, 2025
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 15, 2025
@LukasTy LukasTy merged commit 09b5a8c into mui:master Apr 15, 2025
18 of 19 checks passed
@LukasTy LukasTy deleted the remove-modern-bundles branch April 15, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change core Infrastructure work going on behind the scenes enhancement This is not a bug, nor a new feature scope: code-infra Specific to the core-infra product v8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants