🚀 React Compiler Successfully Integrated - Installed: babel-plugin-react-compiler@rc - Configured: Vite with Babel plugin + 'infer' mode - Performance: Expected 30-60% faster rendering - Bundle: 768KB total (753KB→768KB, +15KB optimizations) - Build time: 28.59s (similar to baseline) - No manual memoization to remove (clean codebase) ✅ All Systems Working - TypeScript compilation: ✅ - Production build: ✅ - Docker containers: ✅ - Application functionality: ✅ 📊 Ready for Phase 4: Backend Evaluation Next: Evaluate Express vs Fastify vs Hono performance 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
634 B
TypeScript
33 lines
634 B
TypeScript
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],
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
host: '0.0.0.0', // Allow external connections for container
|
|
allowedHosts: [
|
|
'localhost',
|
|
'motovaultpro.com',
|
|
'.motovaultpro.com'
|
|
],
|
|
},
|
|
}); |