29 lines
683 B
TypeScript
29 lines
683 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { tanstackRouter } from '@tanstack/router-plugin/vite';
|
|
import path from 'path';
|
|
import { codeInspectorPlugin } from 'code-inspector-plugin';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tanstackRouter({
|
|
target: 'react',
|
|
autoCodeSplitting: true,
|
|
}),
|
|
tailwindcss(),
|
|
react({
|
|
babel: {
|
|
plugins: ['babel-plugin-react-compiler'],
|
|
},
|
|
}),
|
|
codeInspectorPlugin({ bundler: 'vite' }),
|
|
],
|
|
resolve: {
|
|
preserveSymlinks: true,
|
|
alias: {
|
|
'@': path.resolve(process.cwd(), './src'),
|
|
},
|
|
},
|
|
});
|