Company
Date Published
Author
Benjamin Gilbert
Word count
634
Language
English
Hacker News points
None

Summary

In early 2022, Bit introduced Lit support, which has since been used by numerous teams to streamline the development of Bit Components. Over the past year, feedback from the community has led to improvements in processes, tooling, and defaults, culminating in an upgraded Lit environment that enhances developer experience with features such as ESM support by default, better tooling configuration, and improved component template control. This upgrade is designed to empower the Bit + Lit community by offering greater control over the development process and enhancing workflow customization capabilities. The Lit environment allows developers to create custom rendering environments for component previews using a "preview" API, which enables the application of global styles and CSS variables, thereby simulating consumption contexts. For those migrating from a previous Lit environment, the new setup can be integrated into existing projects, with recommendations to deprecate older versions once migration is complete.