mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix(nuxt): ensure component dirs in node_modules
have lower scanning priority (#6382)
This commit is contained in:
parent
03cd6717ce
commit
0b22079409
@ -102,6 +102,11 @@ export default defineNuxtModule<ComponentsOptions>({
|
|||||||
}
|
}
|
||||||
}).filter(d => d.enabled)
|
}).filter(d => d.enabled)
|
||||||
|
|
||||||
|
componentDirs = [
|
||||||
|
...componentDirs.filter(dir => !dir.path.includes('node_modules')),
|
||||||
|
...componentDirs.filter(dir => dir.path.includes('node_modules'))
|
||||||
|
]
|
||||||
|
|
||||||
nuxt.options.build!.transpile!.push(...componentDirs.filter(dir => dir.transpile).map(dir => dir.path))
|
nuxt.options.build!.transpile!.push(...componentDirs.filter(dir => dir.transpile).map(dir => dir.path))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user