Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bundler/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ export async function bundleSSR(
sourcemap: false,
write: false,
plugins: [...denoPlugins(hasConfig ? { configPath } : {})],
// Mark preact as external - we want the same instance as parent
external: ["preact", "preact/*", "preact-render-to-string"],
// Note: preact is bundled (not external) because the temp bundle file
// is outside the project's import map context and can't resolve preact.
// This is fine for SSR since we're just rendering to string.
});

try {
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tabirun/pages",
"version": "0.7.0",
"version": "0.7.1",
"license": "MIT",
"nodeModulesDir": "auto",
"compilerOptions": {
Expand Down