Skip to content

fix: separator issue for Windows#406

Open
Cary123 wants to merge 6 commits intomui:masterfrom
Cary123:master
Open

fix: separator issue for Windows#406
Cary123 wants to merge 6 commits intomui:masterfrom
Cary123:master

Conversation

@Cary123
Copy link
Copy Markdown

@Cary123 Cary123 commented Jun 6, 2025

@zannager zannager added the package: system Specific to @mui/system label Jun 6, 2025
@zannager zannager requested a review from brijeshb42 June 6, 2025 15:39
enforce: 'pre',
resolveId(source) {
if (finalTransformLibraries.some((lib) => source.includes(`${lib}/styles.css`))) {
if (allLibs.some((lib) => source.includes(`${lib}/styles.css`))) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you move this check to a util function, use that here and add some test that were previously failing.

Copy link
Copy Markdown
Author

@Cary123 Cary123 Jun 12, 2025

Choose a reason for hiding this comment

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

@brijeshb42 I've extracted it into a utils file and added some unit tests for it.

  1. This pull request is to resolve Vite Plugin does not work correctly on Windows #385
  2. I encountered the CI test_unit and test_types error, which was resolved in this Pull Request. Once it's merged, it will pass.
  3. I have tested it locally on Windows and Mac and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: system Specific to @mui/system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants