Back to Daily Feed 
SolidJS 2.0 RC.9: Babel Plugin Aligns with Compiler Optimizations
Worth Reading
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
- The Babel plugin now compiles native elements with multiple spread sources to the runtimes' array form.
- This change improves client-side
spread()and server-sidessrElement()performance by avoidingmergeProps(). - Delegated event handlers are now stamped with
_$$<type>keys to prevent conflicts with Solid 1.x. - Non-identifier getter keys in compiled props literals are emitted as string literals, optimizing build cost.
- These updates ensure better compatibility and performance for SolidJS applications using Babel.
Our Commentary
It's good to see the Babel plugin keeping pace with the core compiler changes. For many, the Babel plugin is the compiler, so these updates mean that the performance and compatibility benefits are immediately available to a wide range of SolidJS users. It's a solid step towards a smoother 2.0 transition.
View Original Article
Share this article: