Skip to content

fix(compiler-vapor): recognize a kebab-case keep-alive tag - #15654

Merged
edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-kebab-keep-alive
Sep 29, 2026
Merged

edison1105 merged 2 commits into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-kebab-keep-alive

Conversation

@ValentinYoushkevich

@ValentinYoushkevich ValentinYoushkevich commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

In a Vapor template, <keep-alive> written in kebab-case is not treated as the built-in. The compiler resolves it as a user component, so you get Failed to resolve component: keep-alive, a raw <keep-alive> element in the DOM, and nothing is cached. VDOM accepts both spellings. The kebab form is common in admin layouts, for example <keep-alive :include="cachedViews"> in vue-element-plus-admin. Playground: bump the counter and toggle twice, the Vapor one resets to 0.

isKeepAliveTag lowercased the tag but kept the dashes. It now strips them too, as isTransitionGroupTag already does.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8ca65906-3202-46ae-901d-9479fae47719

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@15654
npm i https://pkg.pr.new/@vue/compiler-core@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@15654
npm i https://pkg.pr.new/@vue/compiler-dom@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@15654
npm i https://pkg.pr.new/@vue/compiler-sfc@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@15654
npm i https://pkg.pr.new/@vue/compiler-ssr@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@15654
npm i https://pkg.pr.new/@vue/compiler-vapor@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@15654
npm i https://pkg.pr.new/@vue/reactivity@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@15654
npm i https://pkg.pr.new/@vue/runtime-core@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@15654
npm i https://pkg.pr.new/@vue/runtime-dom@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@15654
npm i https://pkg.pr.new/@vue/runtime-vapor@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@15654
npm i https://pkg.pr.new/@vue/server-renderer@15654
yarn add https://pkg.pr.new/@vue/[email protected]

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@15654
npm i https://pkg.pr.new/@vue/shared@15654
yarn add https://pkg.pr.new/@vue/[email protected]

vue

pnpm add https://pkg.pr.new/vue@15654
npm i https://pkg.pr.new/vue@15654
yarn add https://pkg.pr.new/[email protected]

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@15654
npm i https://pkg.pr.new/@vue/compat@15654
yarn add https://pkg.pr.new/@vue/[email protected]

commit: 680163b

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.2 kB 30.6 kB 26.9 kB
runtime-dom.global.prod.js 116 kB (+43 B) 43.9 kB (+14 B) 39.2 kB (-5 B)
vue.global.prod.js 176 kB (+43 B) 64 kB (+21 B) 57 kB (+13 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 53.1 kB (+43 B) 20.7 kB (+17 B) 18.9 kB (+16 B)
createApp 61.9 kB (+43 B) 23.9 kB (+15 B) 21.7 kB (+5 B)
createApp + vaporInteropPlugin 126 kB (+3.31 kB) 45.3 kB (+1.11 kB) 40.7 kB (+898 B)
createVaporApp 31.6 kB (+840 B) 12.2 kB (+346 B) 11.2 kB (+297 B)
createSSRApp 66.9 kB (+43 B) 25.9 kB (+15 B) 23.6 kB (+42 B)
createVaporSSRApp 38.4 kB (+1.26 kB) 14.6 kB (+489 B) 13.4 kB (+439 B)
defineCustomElement 68.4 kB (+43 B) 25.9 kB (+17 B) 23.5 kB (+20 B)
defineVaporCustomElement 47 kB (+840 B) 17.1 kB (+324 B) 15.7 kB (+309 B)
overall 77.4 kB (+43 B) 29.4 kB (+16 B) 26.7 kB (+24 B)

isKeepAliveTag only lowercased the tag, so `<keep-alive>` was resolved
as a user component instead of VaporKeepAlive. Strip dashes like
isTransitionGroupTag does, matching isCoreComponent in compiler-core.
@edison1105
edison1105 merged commit daca516 into vuejs:minor Sep 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants