Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
server: { port: 5174, open: true },
|
||||
build: {
|
||||
target: 'es2022',
|
||||
// The body/skin generators are one deterministic chunk; splitting them buys
|
||||
// nothing and costs a round trip before anything can render.
|
||||
chunkSizeWarningLimit: 2500,
|
||||
},
|
||||
// box3d.js ships an Emscripten bundle that resolves its .wasm via
|
||||
// import.meta.url. Pre-bundling rewrites that URL and breaks the lookup, so
|
||||
// leave it alone.
|
||||
optimizeDeps: { exclude: ['box3d.js'] },
|
||||
});
|
||||
Reference in New Issue
Block a user