summaryrefslogtreecommitdiff
path: root/packages/integrations/react/src
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2025-01-13 18:36:10 +0800
committerGravatar GitHub <noreply@github.com> 2025-01-13 10:36:10 +0000
commitc7642fb80b2a2b4d1ec18369b37700ff28b4c041 (patch)
tree0cbad987e18ca2835cf76e6ede0ea15c78f2b109 /packages/integrations/react/src
parentcca3bc934c96488b3281ad8c4792d68cde553f87 (diff)
downloadastro-c7642fb80b2a2b4d1ec18369b37700ff28b4c041.tar.gz
astro-c7642fb80b2a2b4d1ec18369b37700ff28b4c041.tar.zst
astro-c7642fb80b2a2b4d1ec18369b37700ff28b4c041.zip
Remove custom optimizeDeps.include in react integration (#12923)
Diffstat (limited to 'packages/integrations/react/src')
-rw-r--r--packages/integrations/react/src/index.ts12
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index b1effa27a..46da29c7b 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -54,20 +54,10 @@ function getViteConfiguration(
) {
return {
optimizeDeps: {
- include: [
- reactConfig.client,
- 'react',
- 'react/jsx-runtime',
- 'react/jsx-dev-runtime',
- 'react-dom',
- 'react-compiler-runtime',
- ],
+ include: [reactConfig.client],
exclude: [reactConfig.server],
},
plugins: [react({ include, exclude, babel }), optionsPlugin(!!experimentalReactChildren)],
- resolve: {
- dedupe: ['react', 'react-dom', 'react-dom/server'],
- },
ssr: {
external: reactConfig.externals,
noExternal: [