init
This commit is contained in:
16
vite.config.ts
Normal file
16
vite.config.ts
Normal 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/*'],
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user