feat: vapor mode - #5179
Open
edison1105 wants to merge 17 commits into
Open
Conversation
edison1105
commented
Apr 14, 2026
| <section class="VPTeamPageSection"> | ||
| <div class="title"> | ||
| <div class="title-line" /> | ||
| <h2 v-if="$slots.title" class="title-text"> |
Member
Author
There was a problem hiding this comment.
Vue compile doesn't inject $slot, $attrs for template-only component in Vapor mode. So it is necessary to define $slots.
edison1105
commented
Apr 14, 2026
| const isUsingTS = tags.findIndex((tag) => scriptLangTsRE.test(tag)) > -1 | ||
| const defaultExportCode = `\nexport default {name:${JSON.stringify( | ||
| data.relativePath | ||
| )}${vapor ? `,__vapor:true` : ``}}` |
Member
Author
There was a problem hiding this comment.
process the markdown file into a Vapor component.
edison1105
commented
Apr 14, 2026
| :algolia-options | ||
| :open-request | ||
| @vue:beforeMount="actuallyLoaded = true" | ||
| @beforeMount="actuallyLoaded = true" |
Member
Author
There was a problem hiding this comment.
vnode hooks don't work in Vapor mode
edison1105
commented
Apr 14, 2026
| ? createSSRApp(VitePressApp) | ||
| : createClientApp(VitePressApp) | ||
| if (import.meta.env.SSR) { | ||
| return createSSRApp(VitePressApp) |
Member
Author
There was a problem hiding this comment.
Vapor mode only works in the browser, so it should always use createSSRApp in server render.
Member
|
/publish |
commit: |
Member
|
are there any more changes needed in the PR? if not we should just resolve conflict + bump to rc. |
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.
Description
support vapor mode for the default theme.