Skip to content

the component's path in components.d.ts was not transformed when importPathTransform has been set #196

Closed
@LiZhequ

Description

@LiZhequ

I use plugin vite-svg-loader and it declare the following module:

declare module '*.svg?component' {
  import { Component } from 'vue'
  const src: Component
  export default src
}

I've set the importPathTransform:

path => path.endsWith('.svg') ? `${path}?component` : undefined

but the SvgComponent's import path in components.d.ts has no ?component,the component type in the template will be incorrect

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