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

[core] Fix rsc-builder removing the first line #38134

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

michaldudak
Copy link
Member

The current implementation of RSC builder would remove the first line of the file and add 'use client' instead of it. With this change, it now checks if the file contains the directive in its first line and skips processing if it does.

I also improved EOL handling. Since our .gitattributes explicitly specifies eol=lf, we don't need to handle CRLF in sources, even on Windows.

@michaldudak michaldudak added bug 🐛 Something doesn't work core Infrastructure work going on behind the scenes labels Jul 24, 2023
@mui-bot
Copy link

mui-bot commented Jul 24, 2023

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against ea8d4a0

Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@mj12albert mj12albert merged commit ec7de7c into mui:master Jul 24, 2023
20 checks passed
@michaldudak michaldudak deleted the rsc-builder-fix branch July 26, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants