Skip to content

vue使用cdn引入后,vant依赖无法被打包,components.d.ts文件中会自动删除vant组件 #664

@vivid05

Description

@vivid05

Describe the bug

vue使用cdn引入后,vant依赖无法被打包,components.d.ts文件中会自动删除vant组件

Reproduction

使用vite-plugin-cdn-import-async,将vue用cdn引入,打包时会自动删除vant

System Info

mac

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

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