Skip to content

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

Open
@zhiyuanzmj

Description

@zhiyuanzmj

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions