Skip to content

fix(compiler-vapor): treat an omitted slotted option as true like vdom - #16097

Merged
edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slotted-default
Nov 3, 2026
Merged

edison1105 merged 1 commit into
vuejs:minorfrom
ValentinYoushkevich:fix/vapor-slotted-default

Conversation

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor

When compileTemplate (or compileScript with an inlined template) is called without the slotted option, the vdom and ssr compilers treat it as true, as documented on CompilerOptions.slotted. The vapor compiler reads the undefined that compileTemplate forwards as false and marks every scoped <slot> outlet NO_SLOTTED, so neither slot content nor fallback gets the -s attribute and :slotted() rules never match.

The playground hits this in PROD mode, where it inlines <script setup> templates through compileScript without the option (repl source): playground (both spans report the attribute missing; drop __PROD__ to compare).

The vapor transform now checks slotted === false, like ssrTransformSlotOutlet does.

@coderabbitai

coderabbitai Bot commented Nov 2, 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 883f8dc5-7a14-4308-af5b-7fbb25dc6988

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-sfc

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

@vue/compiler-ssr

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

@vue/compiler-vapor

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/runtime-vapor

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 910a5f8

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 87.4 kB 30.7 kB 27 kB
runtime-dom.global.prod.js 121 kB 45.3 kB 40.6 kB
vue.global.prod.js 181 kB 65.6 kB 58.5 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 53.9 kB 21 kB 19.1 kB
createApp 62.9 kB 24.3 kB 22.1 kB
createApp + vaporInteropPlugin 118 kB 43 kB 38.7 kB
createVaporApp 34.2 kB 13.2 kB 12.2 kB
createSSRApp 67.8 kB 26.3 kB 23.8 kB
createVaporSSRApp 42 kB 16 kB 14.8 kB
defineCustomElement 69.5 kB 26.3 kB 23.9 kB
defineVaporCustomElement 49.1 kB 18 kB 16.5 kB
overall 78.4 kB 29.8 kB 27 kB

@edison1105 edison1105 added the scope: vapor related to vapor mode label Nov 3, 2026
@edison1105
edison1105 merged commit b30a008 into vuejs:minor Nov 3, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants