Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Oct 17, 2025

Description

This is found when swapping useCachePlugin and rsc plugin order in jacob-ebey/vite-plugin-react-use-cache#2.

Not exactly sure why, but for now, we can just artificially ensure new line at the end on transform side.

@hi-ogawa hi-ogawa marked this pull request as ready for review October 17, 2025 13:08
@hi-ogawa hi-ogawa changed the title fix(rsc): fix "use server" transform crash for source file without ending new line fix(rsc): fix "use server" transform for source file without ending new line Oct 18, 2025
@hi-ogawa hi-ogawa merged commit 4b2768f into main Oct 18, 2025
20 of 21 checks passed
@hi-ogawa hi-ogawa deleted the 10-17-fix_rsc_fix_use_server_transform_crash_for_source_file_without_no_ending_new_line branch October 18, 2025 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants