From 3108750bb086bc5568ac20f89be8b5f3049649d4 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 24 Mar 2026 23:48:49 -0700 Subject: [PATCH] Remove duplicate frontend assets from wheel to reduce package size (#4567) The wheel currently ships frontend/public/, frontend/src/, and frontend/*.lock alongside frontend/dist/. These are build-time inputs that Vite already copies into dist/ during the build step: - public/ is copied verbatim into dist/ by vite build (28.6 MB duplicate) - src/ is TSX source compiled into dist/assets/*.js (2.1 MB, not used at runtime) - *.lock files are package manager lockfiles (0.9 MB, not used at runtime) The backend only serves from frontend/dist/ (see main.py setup_frontend and run.py frontend_path). Nothing references public/ or src/ at runtime. This drops the wheel from ~62.7 MB to ~31 MB. --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ba75cec594..0c7dd0b962 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,12 +46,9 @@ studio = [ "*.ps1", "*.bat", "frontend/dist/**/*", - "frontend/public/**/*", - "frontend/src/**/*", "frontend/*.json", "frontend/*.ts", "frontend/*.js", - "frontend/*.lock", "frontend/*.html", "frontend/*.yaml", "frontend/.git*",