-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'update-lit-ssr' of github.com:e111077/astro into update…
…-lit-ssr
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
'@astrojs/lit': patch | ||
--- | ||
|
||
Bump deps to lit-ssr 3.0 and polyfill supoprt for template[shadowrootmode] support. Also fix breakage caused by [email protected] hydration behavior requiring lit-ssr 3.0 | ||
Update to use `@lit-labs/ssr@^3` | ||
**[BREAKING]** DOM shim required for Lit SSR has been greatly reduced. `window`, `document`, and other objects are no longer available in global. Most SSR-ready component code should not be affected but, if so, they can be fixed with optional chaining or by using the `isServer` environment checker from the `lit` package. See [lit.dev docs on authoring components for SSR].(https://lit.dev/docs/ssr/authoring/#browser-only-code) | ||
**[BREAKING]** Adds compatibility with `[email protected]` hydration behavior. Do not update if you're using `[email protected]` or lower. | ||
Includes support for template[shadowrootmode] support. |