Vite vs webpack: source lines of code compared
As of 2026-07-30, vitejs/vite contains 105,009 total lines (79,750 code) across 1,994 files, while webpack/webpack contains 289,231 total lines (171,020 code) across 1,544 files as of 2026-07-27. webpack/webpack is about 2.1x the size of vitejs/vite by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | vitejs/vite | webpack/webpack |
|---|
| Files | 1,994 | 1,544 |
| Total lines | 105,009 | 289,231 |
| Code lines | 79,750 | 171,020 |
| Comment lines | 12,885 | 95,760 |
| Blank lines | 12,374 | 22,451 |
| Languages counted | 12 | 12 |
Top languages in vitejs/vite: TypeScript (57.8% of code), YAML (14.3% of code), JavaScript (11.2% of code). Top languages in webpack/webpack: JavaScript (81.5% of code), TypeScript (10.4% of code), JSON (7.7% of code). TypeScript, YAML, JavaScript, JSON appear in both top language lists; CSS appears only in vitejs/vite's top languages; HTML appears only in webpack/webpack's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. vitejs/vite was counted at ref main (commit fa005d19af5d) on 2026-07-30; webpack/webpack was counted at ref main (commit bcb1abd36a6f) on 2026-07-27. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.