Skip to content

Avoid installing unused devDependencies at deploy time#235

Merged
meduzen merged 1 commit intomainfrom
optimize-deploy-time
Feb 23, 2026
Merged

Avoid installing unused devDependencies at deploy time#235
meduzen merged 1 commit intomainfrom
optimize-deploy-time

Conversation

@meduzen
Copy link
Owner

@meduzen meduzen commented Feb 23, 2026

Motivation: it’s all in the title. There’s no point in installing for example Playwright during deployment.

Initially I considered moving it (and others) in optionalDependencies and use npm run ci --omit=optional, but Vite/Rollup itself declares the platform-specific binaries it needs as optional, leading them to not be installed.

@meduzen meduzen self-assigned this Feb 23, 2026
@meduzen meduzen added the ci Continuous integration label Feb 23, 2026
@github-actions
Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Everything 321.12 KB (0%) 6.5 s (0%) 0 ms (+100% 🔺) 6.5 s
HTML 4.37 KB (0%) 88 ms (0%) 0 ms (+100% 🔺) 88 ms
CSS 2.17 KB (0%) 44 ms (0%) 0 ms (+100% 🔺) 44 ms
Fonts 27.8 KB (0%) 556 ms (0%) 0 ms (+100% 🔺) 556 ms

@meduzen meduzen merged commit 891d381 into main Feb 23, 2026
1 of 3 checks passed
@meduzen meduzen deleted the optimize-deploy-time branch February 23, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant