Skip to content

Commit

Permalink
Remove resolve.alias configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 4, 2024
1 parent b0233bb commit 69761ac
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 69761ac

Please sign in to comment.