Back to Daily Feed 
SolidJS Babel Plugin 2.0 RC.16: Better Diagnostics & Server Components
Worth Reading
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
sourceNamesnow includes alocationskind, providingfile:line:colfor diagnostics.- The plugin gains a
rootoption to specify the base directory for source locations. createComponentand binding labels now carry source location information for better debugging.- Server components have removed binding slots, with client components in slots replacing them for client-side behavior.
- SSR now evaluates ref expressions alongside spreads, ensuring hydration IDs align.
Our Commentary
Similar to the compiler, the SolidJS Babel plugin RC is getting better diagnostic reporting with source locations. This is just good engineering. The server component changes, specifically the removal of binding slots, are a consistent theme across these RCs. It's a clear direction for Solid 2.0's server story. The ref evaluation fix for SSR is also a subtle but important detail for hydration correctness.
View Original Article
Share this article: