We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a9e935 commit 1bfd787Copy full SHA for 1bfd787
src/core/transforms/component.ts
@@ -29,7 +29,10 @@ const resolveVue2 = (code: string, s: MagicString) => {
29
const resolveVue3 = (code: string, s: MagicString) => {
30
const results: ResolveResult[] = []
31
32
- for (const match of code.matchAll(/_resolveComponent\("(.+?)"\)/g)) {
+ /**
33
+ * when using some plugin like plugin-vue-jsx, resolveComponent will be imported as resolveComponent1 to avoid duplicate import
34
+ */
35
+ for (const match of code.matchAll(/_resolveComponent[0-9]*\("(.+?)"\)/g)) {
36
const matchedName = match[1]
37
if (match.index != null && matchedName && !matchedName.startsWith('_')) {
38
const start = match.index
0 commit comments