Repository navigation
refactor: include optional bundledDev in DevEnvironment instead of having a separate FBM DevEnvironment - #22587
Merged
Conversation
bundle in DevEnvironment instead of having a separate FBM DevEnvironmentbundledDev in DevEnvironment instead of having a separate FBM DevEnvironment
sheremet-va
commented
Jun 2, 2026
| const headers = isDev | ||
| ? server.config.server.headers | ||
| : server.config.preview.headers | ||
| const headers = server.config.server.headers |
Member
Author
There was a problem hiding this comment.
isDev is always true here because fullBundle requires it
sheremet-va
commented
Jun 2, 2026
sapphi-red
reviewed
Jun 3, 2026
Co-authored-by: 翠 <green@sapphi.red>
Member
|
I'll merge this after #22593 is merged |
sapphi-red
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR refactors how full bundle mode is handled inside Vite. Previously it was a separate environment that extended from
DevEnvironment. Now it is a property on aDevEnvironment.When implementing #21626, we need to provide separate versions of a runnable/fetchable environment if we are to keep the existing architecture (even if we keep the SSR handling inside
FullBundleDevEnvironment). This makes it needlessly complex to deal with when working with environment API in userland.By abandoning inheritance and refactoring it to use composition we can keep the existing architecture of a single "DevEnvironment".
There should be no change to the functionality itself, and I managed to keep the implementation intact.
I am open to changing the naming!