This commit is contained in:
2025-09-22 18:24:52 +05:30
commit 26ea6d17b1
25 changed files with 5255 additions and 0 deletions

16
vite.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { reactRouter } from '@react-router/dev/vite';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [reactRouter(), tsconfigPaths()],
ssr: {
// Workaround for resolving dependencies in the server bundle
// Without this, the React context will be different between direct import and transitive imports in development environment
// For more information, see https://github.com/mui/material-ui/issues/45878#issuecomment-2987441663
optimizeDeps: {
include: ['@emotion/*', '@mui/*'],
},
noExternal: ['@emotion/*', '@mui/*'],
},
});