Skip to content

feat: highly experimental full bundle mode#21235

Merged
sapphi-red merged 77 commits intomainfrom
feat/full-bundle-dev-env
Dec 8, 2025
Merged

feat: highly experimental full bundle mode#21235
sapphi-red merged 77 commits intomainfrom
feat/full-bundle-dev-env

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Dec 8, 2025

This PR adds highly experimental full bundle mode.

This is not expected to be used yet, but rather to make the full bundle mode development easier.

sapphi-red and others added 30 commits December 4, 2025 12:51
Co-Authored-By: underfin <likui.underfin@gmail.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 8, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/vitejs/vite/@vitejs/plugin-legacy@21235
npm i https://pkg.pr.new/vitejs/vite/@vitejs/plugin-legacy@21235
yarn add https://pkg.pr.new/vitejs/vite/@vitejs/plugin-legacy@21235.tgz
pnpm add https://pkg.pr.new/vitejs/vite@21235
npm i https://pkg.pr.new/vitejs/vite@21235
yarn add https://pkg.pr.new/vitejs/vite@21235.tgz

commit: 9d9488e

@sapphi-red sapphi-red marked this pull request as ready for review December 8, 2025 09:35
@sapphi-red sapphi-red merged commit 83d8c99 into vitejs:main Dec 8, 2025
21 of 22 checks passed
@sapphi-red sapphi-red deleted the feat/full-bundle-dev-env branch December 8, 2025 10:47
@punkpeye
Copy link

punkpeye commented Dec 9, 2025

What is full bundle mode?

@lucas-teks
Copy link

@punkpeye https://vite.dev/guide/rolldown#why-introducing-a-full-bundle-mode
This is expected to significantly speed up cold start and full page refresh in large codebases by solving network bottleneck (the request waterfall can be flooded and serves modules slowly). Without full bundle mode only deps are pre-bundled ; but full bundle mode extends this to your src modules in dev env.

In my project, where the HMR is expected to invalidate a lot, this feature is gold.

@punkpeye
Copy link

punkpeye commented Dec 9, 2025

Is this mostly for dev env or does it benefit production too?

@basmilius
Copy link

@punkpeye For dev

@grandsong
Copy link

I am very excited and looking forward!

My current project is a PWA of a small monorepo scale.
For dev server, the page loads over 1,000 resources, most of which are scripts, and many of which are segments of .vue components.
It was painfully slow.
Then I created an sw.js (service worker) to cache most requests in order to greatly speed up the loading.

This full bundle mode can the utmost solution instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants