Skip to content

Does this support JSX? #208

@wubiandaxian

Description

@wubiandaxian

version:
vue: 3.2.16
ant-design-vue: 3.0.0-alpha.11
unplugin-vue-components: 0.17.2

My plugins config like this:

plugins: [
    vue(),
    vueJsx({}),
    Components({
      resolvers: [AntDesignVueResolver()],
      dts: true,
      include: [/\.vue$/, /\.tsx$/, /\.ts$/, /\.vue\?vue/, /\.md$/],
    }),
  ],

And here is my code:

import { defineComponent } from 'vue'
import { Button } from 'ant-design-vue'

export default defineComponent({
  setup() {
    return () => (
      <>
        <div>This is can be a success</div>
        <Button>JSX</Button>
      </>
    )
  }
})

But I still got the whole antdv package loaded in the dev environment.
Does this support JSX? Or I wrote a wrong config?

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