summaryrefslogtreecommitdiff
path: root/packages/integrations/preact
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/preact')
-rw-r--r--packages/integrations/preact/package.json2
-rw-r--r--packages/integrations/preact/src/static-html.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json
index c681c165d..0cd20421a 100644
--- a/packages/integrations/preact/package.json
+++ b/packages/integrations/preact/package.json
@@ -46,7 +46,7 @@
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
- "preact": "^10.24.3"
+ "preact": "^10.25.0"
},
"peerDependencies": {
"preact": "^10.6.5"
diff --git a/packages/integrations/preact/src/static-html.ts b/packages/integrations/preact/src/static-html.ts
index 453e72b7f..af3184808 100644
--- a/packages/integrations/preact/src/static-html.ts
+++ b/packages/integrations/preact/src/static-html.ts
@@ -16,6 +16,7 @@ type Props = {
const StaticHtml = ({ value, name, hydrate = true }: Props) => {
if (!value) return null;
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
+ // @ts-expect-error pass `name` as a prop, ignoring type errors
return h(tagName, { name, dangerouslySetInnerHTML: { __html: value } });
};