concept-collection / mesh-studio
mesh-studio / vite.config.ts
11 lines · 371 BBlameHistoryRaw
1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
4// https://vite.dev/config/
5export default defineConfig({
6 plugins: [react()],
7 base: './',
8 // opencascade.js ships a ~30 MB .wasm; let Vite treat it as a static asset
9 // (we import it with `?url`) rather than trying to pre-bundle it.
10 optimizeDeps: { exclude: ['opencascade.js'] },
11})