import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], worker: { // This ensures your worker is bundled as an ES module, // which is required for modern browsers and deployment. format: 'es', }, });