Skip to content

Vite 8 beta reports bigger bundle size than latest non beta #579

@joaopedrodcf

Description

@joaopedrodcf

Describe the bug

Hello,

I been testing out vite beta in a nuxt application and when I run analyze I been noticing that the report bundle size it's bigger than in the latest version of a non beta.

In one of the applications I work on the brotli bundled change from 800kb to 1.20MB from just changing from vite 7.3.1 to vite 8.0.0 beta 10

I created a two reproduction also using a nuxt app in stackblitz and the same output is noticible:

https://stackblitz.com/edit/github-nwxwdggl?file=package.json
Example from the reproduction in vite 7.3.1 we got a report of around 79kb brotli

Image

https://stackblitz.com/edit/github-nwxwdggl-tevaohly?file=package.json
Example from the reproduction in vite 8.0.0 beta 10 we got a report of 109kb

Image

Reproduction

https://stackblitz.com/edit/github-nwxwdggl

Steps to reproduce

Run pnpm i then run pnpm analyze this will display client build ( the server also shows a difference in bundle size but as the client is more important as more data will go to user browser was focusing on that specific part )

System Info

System:
    OS: macOS 26.2
    CPU: (11) arm64 Apple M3 Pro
    Memory: 7.86 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.21.1 - /Users/user-name/.local/state/fnm_multishells/37733_1769252864148/bin/node
    Yarn: 4.12.0 - /Users/user-name/.local/state/fnm_multishells/37733_1769252864148/bin/yarn
    npm: 10.9.4 - /Users/user-name/.local/state/fnm_multishells/37733_1769252864148/bin/npm
    bun: 1.1.38 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 144.1.86.139
    Chrome: 144.0.7559.97
    Firefox Developer Edition: 147.0
    Safari: 26.2
  npmPackages:
    vite: 8.0.0-beta.10 => 8.0.0-beta.10

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions