github withastro/astro @astrojs/lit@0.2.0

latest releases: astro@5.0.0-beta.2, @astrojs/vue@5.0.0-beta.0, @astrojs/svelte@6.0.0-beta.0...
2 years ago

Minor Changes

  • #3625 f5afaf24 Thanks @matthewp! - Conform to Constructor based rendering

    This changes @astrojs/lit to conform to the way rendering happens in all other frameworks. Instead of using the tag name <my-element client:load> you use the imported constructor function, <MyElement client:load> like you would do with any other framework.

    Support for tag-name syntax had to be removed due to the fact that it was a runtime feature that was not statically analyzable. To improve build performance, we have removed all runtime based component discovery. Using the imported Constructor name allows Astro to discover what components need to be built and bundled for production without ever running your file.

Don't miss a new astro release

NewReleases is sending notifications on new releases.