fix: exclude all renderer server entrypoints (#1692)
This commit is contained in:
parent
577d912b8e
commit
a7e62ded69
5 changed files with 5 additions and 0 deletions
|
@ -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'],
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -8,6 +8,7 @@ export default {
|
|||
return {
|
||||
optimizeDeps: {
|
||||
include: ['@astrojs/renderer-vue/client.js', 'vue'],
|
||||
exclude: ['@astrojs/renderer-vue/server.js'],
|
||||
},
|
||||
plugins: [vue()],
|
||||
ssr: {
|
||||
|
|
Loading…
Reference in a new issue