-
Describe the bugWhen I use the {
plugins:[
AutoImport({
imports: ["vue"],
resolvers: [
ElementPlusResolver(),
IconsResolver({
prefix: "Icon",
}),
],
extensions: ["vue", "jsx", "tsx"],
}),
Components({
resolvers: [
// 自动注册图标组件
IconsResolver({
enabledCollections: ["ep"],
}),
ElementPlusResolver(),
],
extensions: ["vue", "jsx", "tsx"],
}),
]
} It's only efficient in .vue component. But it's not ok in .jsx Reproductionhttps://github.com/ngd-b/vue-vite/tree/unplugin-vue-components System Infomac apple m2 ; chrome Used Package Managernpm Validations
|
Beta Was this translation helpful? Give feedback.
Answered by
ilyaliao
Jul 8, 2025
Replies: 1 comment 1 reply
-
Try configuring like this: include: [
/\.vue$/,
/\.vue\?vue/,
/\.vue\.[tj]sx?\?vue/, // for vue-loader with experimentalInlineMatchResource enabled
/\.vue\?v=/,
/\.jsx/,
], |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ngd-b
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try configuring like this: