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

[pigment-css] Fix evaluation of undefined variables #41569

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Mar 20, 2024

To unblock #41366 and #41546.

I decided to create the plugin outside of the pigment repo because it is still a temporary fix which will be more flexible to test or update if there are more cases.

The plugin fixes:

  • _c is not defined
  • _systemCreateTheme is not defined

See test cases: https://github.com/siriwatknp/babel-plugin-define-var/blob/main/test/index.test.ts.


@siriwatknp siriwatknp added the package: pigment-css Specific to @pigment-css/* label Mar 20, 2024
@mui-bot
Copy link

mui-bot commented Mar 20, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 557b959

@siriwatknp siriwatknp merged commit 4ca7231 into mui:next Mar 20, 2024
20 checks passed
pluvio72 pushed a commit to pluvio72/material-ui that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: pigment-css Specific to @pigment-css/*
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants