fix: exclude all renderer server entrypoints (#1692)

This commit is contained in:
Nate Moore 2021-10-28 12:54:04 -07:00 committed by GitHub
parent 577d912b8e
commit a7e62ded69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 0 deletions

View file

@ -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'],

View file

@ -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'],

View file

@ -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'],

View file

@ -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({

View file

@ -8,6 +8,7 @@ export default {
return {
optimizeDeps: {
include: ['@astrojs/renderer-vue/client.js', 'vue'],
exclude: ['@astrojs/renderer-vue/server.js'],
},
plugins: [vue()],
ssr: {