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

[zero][Badge] Identify zero runtime styled path #40555

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

brijeshb42
Copy link
Contributor

@brijeshb42 brijeshb42 commented Jan 12, 2024

and replace emotion/system with zero runtime at build time.

To test locally, see the README of this repo.

@brijeshb42 brijeshb42 added the package: pigment-css Specific to @pigment-css/* label Jan 12, 2024
@brijeshb42 brijeshb42 changed the title [system] An intermediate package to use both emotion [zero] An intermediate package to use both emotion Jan 12, 2024
@mui-bot
Copy link

mui-bot commented Jan 12, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b9e72dc

@brijeshb42 brijeshb42 force-pushed the zero-intermediate-pkg-POC branch 2 times, most recently from c99cfba to 0c18fee Compare January 12, 2024 12:34
@brijeshb42 brijeshb42 force-pushed the zero-intermediate-pkg-POC branch 3 times, most recently from b3c7d82 to 608c975 Compare January 12, 2024 16:15
and replace emotion/system with zero runtime at build time.
@@ -6,7 +6,7 @@ import { usePreviousProps } from '@mui/utils';
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
import { useBadge } from '@mui/base/useBadge';
import { useSlotProps } from '@mui/base';
import styled from '../styles/styled';
import { styled } from '../zero-styled';
Copy link
Contributor Author

@brijeshb42 brijeshb42 Jan 12, 2024

Choose a reason for hiding this comment

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

Added alternate way to specify zero-runtime readiness without the need of a separate package. The only requirement now is that the import path should end with /zero-styled. We can change this path as well.
The other approach seemed unnecessarily complex and required a side-effect file import.

@brijeshb42 brijeshb42 changed the title [zero] An intermediate package to use both emotion [zero] Identify zero runtime styled path Jan 12, 2024
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.

👏 Great job!

@brijeshb42 brijeshb42 merged commit a8102f8 into mui:master Jan 15, 2024
19 checks passed
@brijeshb42 brijeshb42 deleted the zero-intermediate-pkg-POC branch January 15, 2024 09:40
@mnajdova mnajdova changed the title [zero] Identify zero runtime styled path [zero][Badge] Identify zero runtime styled path Jan 15, 2024
@oliviertassinari oliviertassinari added the package: system Specific to @mui/system label Feb 8, 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/* package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants