Skip to content

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

@zhiyuanzmj

Description

@zhiyuanzmj
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @zhiyuanzmj

      Issue actions

        [BUG] aliased Fragments and KeepAlive's children should not be transformed into slots. Β· Issue #761 Β· vuejs/babel-plugin-jsx