Skip to content

Can't generate emit functions type when build a .vue file in version 4.x.x #414

@ja-plus

Description

@ja-plus

Describe the bug

Image

version 4.x.x will remove all the emit type definition. That's not good
above image shows : left part is built by version 4.3.0, right part is built by 3.9.1.

Reproduction

no

Steps to reproduce

No response

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (4) x64 Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
    Memory: 761.59 MB / 7.99 GB
  Binaries:
    Node: 18.16.0 - D:\ThsSoftware\nodejs1816_ths\ths\node.EXE
    npm: 8.19.4 - D:\ThsSoftware\nodejs1816_ths\ths\npm.CMD
    pnpm: 8.14.3 - D:\ThsSoftware\nodejs1816_ths\ths\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (133.0.3065.69)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-vue: ^5.1.4 => 5.1.4
    vite: ^5.4.10 => 5.4.10
    vite-plugin-dts: 4.3.0 => 4.3.0

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions