Closed
Description
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
Labels
No labels