summaryrefslogtreecommitdiff
path: root/packages/integrations/preact
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/preact')
-rw-r--r--packages/integrations/preact/package.json4
-rw-r--r--packages/integrations/preact/src/static-html.ts1
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json
index 7cea651ac..d32dca053 100644
--- a/packages/integrations/preact/package.json
+++ b/packages/integrations/preact/package.json
@@ -41,12 +41,12 @@
"@preact/signals": "^1.3.0",
"babel-plugin-transform-hook-names": "^1.0.2",
"preact-render-to-string": "^6.5.11",
- "vite": "^5.4.10"
+ "vite": "^5.4.11"
},
"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 } });
};