Skip to content

fix: Preserve trailing newlines when modifying config files#1208

Merged
andreiborza merged 1 commit intomasterfrom
ab/fix-trailing-newline-preservation
Jan 30, 2026
Merged

fix: Preserve trailing newlines when modifying config files#1208
andreiborza merged 1 commit intomasterfrom
ab/fix-trailing-newline-preservation

Conversation

@andreiborza
Copy link
Member

Code generators like magicast/recast don't preserve trailing newlines from the original file. This adds a utility function to restore the trailing newline if the original file had one.

Fixes #1201

Code generators like magicast/recast don't preserve trailing newlines
from the original file. This adds a utility function to restore the
trailing newline if the original file had one.

Fixes #1201
@andreiborza andreiborza force-pushed the ab/fix-trailing-newline-preservation branch from 18c7dec to 37505e2 Compare January 30, 2026 17:19
@andreiborza andreiborza enabled auto-merge (squash) January 30, 2026 17:20
@andreiborza andreiborza merged commit 5739000 into master Jan 30, 2026
53 checks passed
@andreiborza andreiborza deleted the ab/fix-trailing-newline-preservation branch January 30, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New line at the end of vite config was removed

3 participants