summaryrefslogtreecommitdiff
path: root/packages/integrations/react/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-10-07 15:54:25 -0400
committerGravatar GitHub <noreply@github.com> 2022-10-07 15:54:25 -0400
commit6efeaeb39ed7e6642b31603745750ccb9fe0ff1e (patch)
tree1f2ce7d6ed120d9b97d42d43e8e31988c35e98e5 /packages/integrations/react/src
parente5c64c51c148226423fe07a44f00ee10f7c37a23 (diff)
downloadastro-6efeaeb39ed7e6642b31603745750ccb9fe0ff1e.tar.gz
astro-6efeaeb39ed7e6642b31603745750ccb9fe0ff1e.tar.zst
astro-6efeaeb39ed7e6642b31603745750ccb9fe0ff1e.zip
Fix suppot for mui (#5016)
Diffstat (limited to 'packages/integrations/react/src')
-rw-r--r--packages/integrations/react/src/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/integrations/react/src/index.ts b/packages/integrations/react/src/index.ts
index 37cfb1b6a..b90819f41 100644
--- a/packages/integrations/react/src/index.ts
+++ b/packages/integrations/react/src/index.ts
@@ -61,6 +61,10 @@ function getViteConfiguration() {
external: ReactVersion.startsWith('18.')
? ['react-dom/server', 'react-dom/client']
: ['react-dom/server.js', 'react-dom/client.js'],
+ noExternal: [
+ // These are all needed to get mui to work.
+ '@mui/material', '@mui/base', '@babel/runtime'
+ ]
},
};
}