Files
excalidraw-box/package.json
ruinivist 6044f8da7c feat: Use Vite for client code splitting
Replaced Bun's client bundler with Vite to fix code splitting issues.
Extracted React and Excalidraw into their own manual chunks to prevent
the monolithic 7MB index.js from blocking rendering. FCP decreased
significantly since browsers can now cache these chunks independently.
2026-05-30 18:02:32 +00:00

27 lines
800 B
JSON

{
"name": "excali",
"type": "module",
"private": true,
"scripts": {
"dev": "bun --hot src/dev-server.tsx",
"build": "rm -rf dist && bun run build:client && bun run build:server",
"build:client": "vite build",
"build:server": "mkdir -p ./dist/server && bun build --target=bun --production --outfile ./dist/server/server.js ./src/server.tsx",
"start": "DATABASE_PATH=./data/excalidraw.sqlite bun ./dist/server/server.js",
"test": "bun test",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@excalidraw/excalidraw": "^0.18.1",
"react": "^19.2.6",
"react-dom": "^19.2.6"
},
"devDependencies": {
"@types/bun": "^1.3.14",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"typescript": "^5.9.3",
"vite": "^5.0.0"
}
}