Skip to content
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

[code-infra] Add missing @babel/runtime dependency to @mui/material-pigment-css #43473

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Aug 27, 2024

Discovered in #43264, where this was breaking a build. Took the opportunity to add a check for missing @babel/runtime dependencies. As suggested in #43243 I'm passing this version to babel config to be used in the build.

@mui-bot
Copy link

mui-bot commented Aug 27, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 97da18a

@Janpot Janpot added the scope: code-infra Specific to the core-infra product label Aug 27, 2024
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 27, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 27, 2024
@@ -93,7 +93,7 @@ module.exports = function getBabelConfig(api) {
{
useESModules,
// any package needs to declare 7.25.0 as a runtime dependency. default is ^7.0.0
version: '^7.25.0',
version: process.env.MUI_BABEL_RUNTIME_VERSION || '^7.25.0',
Copy link
Member Author

Choose a reason for hiding this comment

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

Not 100% satisfied with this solution but the babel config is used both by our build and by babel-node. MUI_BABEL_RUNTIME_VERSION may not always be defined. This seemed to be the lesser of evils, the existence is already checked in the build script

@Janpot Janpot marked this pull request as ready for review August 27, 2024 15:18
@Janpot Janpot requested a review from a team August 27, 2024 15:18
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM, the solution looks very elegant given the circumstances. 👍

@Janpot Janpot merged commit f1d5fff into mui:master Sep 3, 2024
19 checks passed
@Janpot Janpot deleted the babel-runtimed branch September 3, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants