-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[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
[core] Remove modern bundles #17359
Conversation
Deploy preview: https://deploy-preview-17359--material-ui-x.netlify.app/ Updated pages: |
packages/x-license/package.json
Outdated
@@ -11,17 +11,15 @@ | |||
"homepage": "https://mui.com/x/introduction/licensing/", | |||
"sideEffects": [ | |||
"./utils/licenseInfo.js", | |||
"./modern/utils/licenseInfo.js", | |||
"./node/utils/licenseInfo.js" |
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.
node
export no longer exists.
packages/x-license/package.json
Outdated
@@ -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" |
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.
🤔 This shouldn't be necessary I believ
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 you mean the side effects altogether? 🤔
Or the change of paths? 🤔
node
folder no longer exists, same for modern
...
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.
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
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.
Thanks for spotting this. 🙏
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.
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.
no, it's not 🤔 This is supposed to kick in. I can take a look tomorrow.
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, the packages should build faster now 👍🏻
It's only very marginal. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Follow up on mui/material-ui#45808.
Waiting for mui/material-ui#45912 to remove themodern
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).