Thanks to visit codestin.com
Credit goes to github.com

Skip to content

revert: type support of slot children (#5137) #5514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

KazariEX
Copy link
Member

@KazariEX KazariEX commented Jul 17, 2025

After discussion, we believe the implementation of this feature is not yet mature and cannot adequately address real-world scenarios. Therefore, we revert it for now and will continue to wait for progress on this rfc.

Copy link

pkg-pr-new bot commented Jul 17, 2025

Open in StackBlitz

vue-component-meta

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5514

vue-component-type-helpers

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5514

@vue/language-core

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5514

@vue/language-plugin-pug

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5514

@vue/language-server

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5514

@vue/language-service

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5514

vue-tsc

npm i https://pkg.pr.new/vuejs/language-tools/vue-tsc@5514

@vue/typescript-plugin

npm i https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5514

commit: c82b740

@KazariEX KazariEX merged commit 259eea1 into vuejs:master Jul 17, 2025
6 checks passed
@KazariEX KazariEX deleted the revert/pr-5137 branch July 17, 2025 17:17
@DrJume
Copy link

DrJume commented Jul 18, 2025

Oh, very sad to see this. We already used it internally and were very happy that this was possible.

Would it be possible to enable this feature under a flag of vueCompilerOptions?

@KazariEX
Copy link
Member Author

KazariEX commented Jul 18, 2025

The current implementation may not be the same as the final solution, so we hope to avoid too much breaking changes caused by late modifications. Sorry for setting the false expectations.

@LouisHaftmann
Copy link

LouisHaftmann commented Jul 18, 2025

Why not enable it via an experimental flag? Users should expect bugs or breaking changes from an experimental feature. Something like:

{
  "vueCompilerOptions": {
    "experimental": {
      "strictSlotChildren" true
    }
  }
}

I would rather have breaking changes with an experimental feature than having to wait for the feature to be fully released.

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.

3 participants