Cassidy's blog
Read post

Whitespace in Astro 7.0

Astro 7.0 introduced a new Rust-based compiler that changes how whitespace between adjacent JSX elements is handled. Previously, adjacent elements like two spans would render with a space between them; now they render without any space. The fix is either to explicitly add {' '} between elements (JSX-style) or to set compressHTML: true in astro.config.mjs, which restores the previous spacing behavior without requiring changes to every component.

    #rust#astro#jsx
Jun 30•2m read time•From cassidoo.co
Post cover image
1.7K Impressions
Cassidy's blog's image
Cassidy's blog

Cassidoo's resource offers insights, tutorials, and resources for software developers and technology...

439 Followers

•

4.6K Upvotes

cassidoo's user avatar
Cassidy Williams
@cassidoo
Joined Dec 7. 2025
2.1K

making memes and dreams and software

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard