Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork378
-
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
|
BetaWas this translation helpful?Give feedback.
All reactions
Answered by ilyaliaoJul 8, 2025
Try configuring like this:
include:[/\.vue$/,/\.vue\?vue/,/\.vue\.[tj]sx?\?vue/,// for vue-loader with experimentalInlineMatchResource enabled/\.vue\?v=/,/\.jsx/,],
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/,], |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
1 reply
-
That's good. It would be best to set defeault value. |
BetaWas this translation helpful?Give feedback.
All reactions
Answer selected byngd-b
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
Converted from issue
This discussion was converted from issue #852 on July 18, 2025 00:33.