import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [react(), tailwindcss()], server: { port: 5173, strictPort: true }, // HMDesign (git submodule) has its own example/export HTML entries with their // own `@/...` path aliases — without pinning `entries`, Vite's dependency // scanner crawls every *.html under the project root and trips over them. optimizeDeps: { include: ['three', 'dxf-parser', 'opentype.js'], entries: ['index.html'] }, assetsInclude: ['**/*.wasm'], });