diff --git a/packages/renderers/renderer-preact/index.js b/packages/renderers/renderer-preact/index.js index afd34210c..a1a21a561 100644 --- a/packages/renderers/renderer-preact/index.js +++ b/packages/renderers/renderer-preact/index.js @@ -15,6 +15,7 @@ export default { return { optimizeDeps: { include: ['@astrojs/renderer-preact/client.js', 'preact', 'preact/jsx-runtime', 'preact-render-to-string'], + exclude: ['@astrojs/renderer-preact/server.js'], }, ssr: { external: ['preact-render-to-string'], diff --git a/packages/renderers/renderer-react/index.js b/packages/renderers/renderer-react/index.js index 2fa830f79..fdebd3fcb 100644 --- a/packages/renderers/renderer-react/index.js +++ b/packages/renderers/renderer-react/index.js @@ -15,6 +15,7 @@ export default { return { optimizeDeps: { include: ['@astrojs/renderer-react/client.js', 'react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom'], + exclude: ['@astrojs/renderer-react/server.js'], }, resolve: { dedupe: ['react', 'react-dom'], diff --git a/packages/renderers/renderer-solid/index.js b/packages/renderers/renderer-solid/index.js index 803afa11f..f1e566fd8 100644 --- a/packages/renderers/renderer-solid/index.js +++ b/packages/renderers/renderer-solid/index.js @@ -47,6 +47,7 @@ export default { }, optimizeDeps: { include: nestedDeps, + exclude: ['@astrojs/renderer-solid/server.js'], }, ssr: { external: ['solid-js/web/dist/server.js', 'solid-js/store/dist/server.js', 'solid-js/dist/server.js', 'babel-preset-solid'], diff --git a/packages/renderers/renderer-svelte/index.js b/packages/renderers/renderer-svelte/index.js index ce7290d9b..502ba6bfa 100644 --- a/packages/renderers/renderer-svelte/index.js +++ b/packages/renderers/renderer-svelte/index.js @@ -8,6 +8,7 @@ export default { return { optimizeDeps: { include: ['@astrojs/renderer-svelte/client.js', 'svelte', 'svelte/internal'], + exclude: ['@astrojs/renderer-svelte/server.js'], }, plugins: [ svelte({ diff --git a/packages/renderers/renderer-vue/index.js b/packages/renderers/renderer-vue/index.js index 5e39c5a00..a3faf2bf9 100644 --- a/packages/renderers/renderer-vue/index.js +++ b/packages/renderers/renderer-vue/index.js @@ -8,6 +8,7 @@ export default { return { optimizeDeps: { include: ['@astrojs/renderer-vue/client.js', 'vue'], + exclude: ['@astrojs/renderer-vue/server.js'], }, plugins: [vue()], ssr: {