Skip to content

希望增加在 build 的时候生成全部的自动导入的文件,或者添加相关命令 #758

Open
@WangJincheng4869

Description

@WangJincheng4869

Clear and concise description of the problem

最近这个问题使我非常的苦恼,我是用这个插件进行自动导入 vite + vue3 + element plus 的组件时,在打包时遇到了和自动导入插件同样的问题。就是其他人写的代码由于我没有访问过这些页面,导致没有生成 components.d.ts 中的声明,导致打包出现异常。

Suggested solution

希望插件在检测到 build 时先生成 components.d.ts 文件,最好是可以自动补充缺少的内容,自动删除无用的内容。保证打包的正确性,或者添加重新生成 components.d.ts 文件的命令也可以,这个问题在 unplugin-auto-import 同样存在。

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions