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

[unplugin] Fix the path check for Windows #136

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Jun 12, 2024

Issue

On Windows, the received id is ...\@pigment-css\react\theme but the unplugin only check for /. That's why the generateThemeSource() is not called which is result in {} for runtime theme and the build is error for components that try to use the theme.

Before: https://github.com/mui/material-ui/actions/runs/9475564524/job/26107055930?pr=42476

After: https://github.com/mui/material-ui/actions/runs/9476406034/job/26109235879?pr=42476

@siriwatknp siriwatknp changed the title [POC] test path window [unplugin] Fix the path check for Windows Jun 12, 2024
@siriwatknp siriwatknp added the bug 🐛 Something doesn't work label Jun 12, 2024
@siriwatknp siriwatknp marked this pull request as ready for review June 12, 2024 04:05
Copy link
Contributor

@brijeshb42 brijeshb42 left a comment

Choose a reason for hiding this comment

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

Thanks

@siriwatknp siriwatknp merged commit 19e5ae6 into master Jun 12, 2024
18 of 19 checks passed
@siriwatknp siriwatknp deleted the unplugin/windows branch June 12, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants