import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' import path from 'path' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: { // The git HEAD of react-automat doesn't ship pre-built dist/. // Resolve directly to the ESM source so Vite bundles it. 'react-automat': path.resolve(import.meta.dirname, 'node_modules/react-automat/src/lib/index.js'), }, }, })