diff --git a/vite.config.mjs b/vite.config.mjs index 57ec61d5b..feff03f5f 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -12,25 +12,21 @@ const outputPkg = new URL('./npm/package.json', import.meta.url); export default defineConfig({ clearScreen: false, - legacy: { - // For the prerender plugin - proxySsrExternalModules: true, - }, - resolve: { - alias: { - '@mui/base': '@mui/base/modern', - '@mui/icons-material': '@mui/icons-material/esm', - '@mui/material': '@mui/material/modern', - '@mui/styled-engine': '@mui/styled-engine/modern', - '@mui/system': '@mui/system/modern', - '@mui/utils': '@mui/utils/modern', - }, - }, build: { outDir: 'npm/public/', assetsDir: 'static', manifest: true, }, + ssr: { + noExternal: [ + '@mui/base', + '@mui/icons-material', + '@mui/material', + '@mui/styled-engine', + '@mui/system', + '@mui/utils', + ], + }, server: { port: 6041, proxy: {