Back to Daily Feed 
SolidJS 2.0 RC.9: Enhanced Diagnostics & Tree-Shaking
Worth Reading
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
- Attribution engine's folds, queries, and formatters are now named exports from
solid-js/attribution. - This allows consumers to tree-shake unused diagnostic parts, reducing bundle size by ~1,150 B brotli.
- Rerun records are now serializable, and
RerunEventno longer carries the live node, usingnodeIdinstead. AttributionCostTablesandAttributionFeedbackTablesare new types for diagnostic data.- The
attributionobject retains core functions likeenable,disable, andsubscribe.
Our Commentary
I'm always happy to see improvements in developer diagnostics and bundle size. The tree-shaking for the attribution engine is a smart move; it means we get powerful debugging tools without paying for them in production if we don't need them. And serializable rerun records? That's a win for anyone trying to analyze performance data outside the browser.
View Original Article
Share this article: