Skip to content
\n

It's only efficient in .vue component. But it's not ok in .jsx

\n

Reproduction

\n

https://github.com/ngd-b/vue-vite/tree/unplugin-vue-components

\n

System Info

\n
mac apple m2 ; chrome
\n

Used Package Manager

\n

npm

\n

Validations

\n","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Try configuring like this:

\n
include: [\n  /\\.vue$/,\n  /\\.vue\\?vue/,\n  /\\.vue\\.[tj]sx?\\?vue/, // for vue-loader with experimentalInlineMatchResource enabled\n  /\\.vue\\?v=/,\n  /\\.jsx/,\n],
","upvoteCount":2,"url":"https://github.com/unplugin/unplugin-vue-components/discussions/864#discussioncomment-13799485"}}}
Discussion options

You must be logged in to vote

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

Comment options

You must be logged in to vote
1 reply
@ngd-b
Comment options

Answer selected by ngd-b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #852 on July 18, 2025 00:33.