Updated frameworks.
This commit is contained in:
@@ -2,17 +2,11 @@ import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
const ReactCompilerConfig = {
|
||||
compilationMode: 'infer'
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
plugins: [
|
||||
['babel-plugin-react-compiler', ReactCompilerConfig],
|
||||
],
|
||||
plugins: ['@emotion/babel-plugin'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
@@ -38,10 +32,9 @@ export default defineConfig({
|
||||
'react-vendor': ['react', 'react-dom'],
|
||||
'react-router': ['react-router-dom'],
|
||||
|
||||
// UI library
|
||||
'mui-core': ['@mui/material', '@mui/system'],
|
||||
// UI library (emotion bundled with mui-core to prevent runtime errors)
|
||||
'mui-core': ['@mui/material', '@mui/system', '@emotion/react', '@emotion/styled'],
|
||||
'mui-icons': ['@mui/icons-material'],
|
||||
'emotion': ['@emotion/react', '@emotion/styled'],
|
||||
|
||||
// Authentication
|
||||
'auth': ['@auth0/auth0-react'],
|
||||
|
||||
Reference in New Issue
Block a user