import { defineConfig } from 'vite'; import symfonyPlugin from 'vite-plugin-symfony'; export default defineConfig({ plugins: [ symfonyPlugin({ stimulus: true, }), ], esbuild: { jsx: 'automatic', }, build: { rollupOptions: { input: { app: './assets/app.js', }, }, }, server: { host: '0.0.0.0', port: 5173, strictPort: true, origin: 'http://localhost:5173', cors: true, allowedHosts: ['node'], hmr: { host: 'localhost', port: 5173, protocol: 'ws', }, }, });