import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";

// https://vitejs.dev/config/
export default defineConfig({
  define: {
    process: { env: { NODE_ENV: "development" } }
  },
  plugins: [react(), wasm(), topLevelAwait()],
  optimizeDeps: {
    include: ['@excalidraw/excalidraw']
  },
})
