import { defineConfig } from 'vite'; import preact from '@preact/preset-vite'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [preact()], server: { watch: { // Thêm thư mục ngoài src mà bạn muốn theo dõi usePolling: true, // Dùng polling để theo dõi thay đổi ignored: ['!**/node_modules/**'], // Loại bỏ các thư mục không cần theo dõi } }, });