import { defineConfig } from 'vite'; import { resolve } from 'node:path'; import react from '@vitejs/plugin-react'; import wasm from 'vite-plugin-wasm'; import topLevelAwait from 'vite-plugin-top-level-await'; export default defineConfig({ plugins: [react(), wasm(), topLevelAwait()], optimizeDeps: { exclude: ['@elata-biosciences/rppg-web'], }, build: { rollupOptions: { input: { main: resolve(__dirname, 'index.html'), game: resolve(__dirname, 'game.html'), }, }, }, });