Skip to content

Commit d724766

Browse files
committed
chore: hard to say
1 parent ae8672e commit d724766

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

npm-shrinkwrap.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"lightningcss": "^1.30.2",
6262
"mdast-util-slice-markdown": "^2.0.1",
6363
"piscina": "^5.1.4",
64-
"preact": "^10.28.0",
64+
"preact": "^11.0.0-beta.0",
6565
"preact-render-to-string": "^6.6.3",
6666
"reading-time": "^1.5.0",
6767
"recma-jsx": "^1.0.1",

src/generators/web/utils/generate.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,10 @@ export default () => {
8181
...baseImports,
8282

8383
// Import Preact's SSR render function (named import)
84-
createImportDeclaration(
85-
'renderToString',
86-
'preact-render-to-string',
87-
false
88-
),
84+
createImportDeclaration('render', 'preact-render-to-string', false),
8985

9086
// Render component to HTML string and return it
91-
`return renderToString(${componentCode});`,
87+
`return render(${componentCode});`,
9288
].join('\n');
9389
};
9490

0 commit comments

Comments
 (0)