Skip to content

Commit

Permalink
Remove preact-render-to-string from optimized includes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Feb 10, 2022
1 parent 670bf8c commit 4067234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/renderers/renderer-preact/compat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
dedupe: ['react', 'react-dom'],
},
optimizeDeps: {
include: ['@astrojs/renderer-preact/client.js', 'preact/compat', 'preact/compat/jsx-runtime', 'preact-render-to-string'],
include: ['@astrojs/renderer-preact/client.js', 'preact/compat', 'preact/compat/jsx-runtime'],
},
ssr: {
external: ['preact-render-to-string'],
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers/renderer-preact/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
viteConfig() {
return {
optimizeDeps: {
include: ['@astrojs/renderer-preact/client.js', 'preact', 'preact/jsx-runtime', 'preact-render-to-string'],
include: ['@astrojs/renderer-preact/client.js', 'preact', 'preact/jsx-runtime'],
exclude: ['@astrojs/renderer-preact/server.js'],
},
ssr: {
Expand Down

0 comments on commit 4067234

Please sign in to comment.