diff --git a/bundler/ssr.ts b/bundler/ssr.ts index c40d27e..1bcf399 100644 --- a/bundler/ssr.ts +++ b/bundler/ssr.ts @@ -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 { diff --git a/deno.json b/deno.json index d848000..7e6776f 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@tabirun/pages", - "version": "0.7.0", + "version": "0.7.1", "license": "MIT", "nodeModulesDir": "auto", "compilerOptions": {