summaryrefslogtreecommitdiff
path: root/packages/integrations/lit/src/index.ts
diff options
context:
space:
mode:
authorGravatar Elliott Marquez <5981958+e111077@users.noreply.github.com> 2023-02-01 05:18:37 -0800
committerGravatar GitHub <noreply@github.com> 2023-02-01 08:18:37 -0500
commit0db22041531d981a813a07f4c4e00cfb7ebddd51 (patch)
treec0d51b213a6c4a90479fa509d221bf129ab05602 /packages/integrations/lit/src/index.ts
parente193dfad1ec0d9bf857f0cce314c0127234c8bea (diff)
downloadastro-0db22041531d981a813a07f4c4e00cfb7ebddd51.tar.gz
astro-0db22041531d981a813a07f4c4e00cfb7ebddd51.tar.zst
astro-0db22041531d981a813a07f4c4e00cfb7ebddd51.zip
[Lit] Fix hydration not having the same reactive values as server (#6080)
* Fix lit hydration not having the same reactive values * add changeset * add clientEntrypoint to package exports * update tests * add changeset * only add defer-hydration when strictly necessary * remove second changest * fix test typos
Diffstat (limited to 'packages/integrations/lit/src/index.ts')
-rw-r--r--packages/integrations/lit/src/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/integrations/lit/src/index.ts b/packages/integrations/lit/src/index.ts
index 5b428ef8d..de6d5b0f9 100644
--- a/packages/integrations/lit/src/index.ts
+++ b/packages/integrations/lit/src/index.ts
@@ -5,6 +5,7 @@ function getViteConfiguration() {
return {
optimizeDeps: {
include: [
+ '@astrojs/lit/dist/client.js',
'@astrojs/lit/client-shim.js',
'@astrojs/lit/hydration-support.js',
'@webcomponents/template-shadowroot/template-shadowroot.js',
@@ -34,6 +35,7 @@ export default function (): AstroIntegration {
addRenderer({
name: '@astrojs/lit',
serverEntrypoint: '@astrojs/lit/server.js',
+ clientEntrypoint: '@astrojs/lit/dist/client.js',
});
// Update the vite configuration.
updateConfig({