Skip to content

[BUG] aliased Fragments and KeepAlive's children should not be transformed into slots. #761

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

Open
zhiyuanzmj opened this issue May 23, 2025 · 0 comments · May be fixed by #762
Open

[BUG] aliased Fragments and KeepAlive's children should not be transformed into slots. #761

zhiyuanzmj opened this issue May 23, 2025 · 0 comments · May be fixed by #762

Comments

@zhiyuanzmj
Copy link
Member

🐛 Bug description

aliased Fragments and KeepAlive's children should not be transformed into slots.

import { Fragment as FragmentA } from 'vue'

const Root = <FragmentA>root</FragmentA>
// will be coverted to
const Root = _createVNode(_FragmentA, null, {
  default: () => [_createTextVNode("root2")]
});

📝 Steps to reproduce

REPL

Reproduction Link (required):

🏞 Desired result

import { Fragment as FragmentA } from 'vue'

const Root = <FragmentA>root</FragmentA>
// should be converted to array
const Root = _createVNode(_FragmentA, null, [_createTextVNode("root2")]);

🚑 Other information

vue-macros/vue-macros#954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant