mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): ensure component imports are injected last (#28944)
This commit is contained in:
parent
3e7f215824
commit
646c1f8b95
@ -51,6 +51,7 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT
|
|||||||
|
|
||||||
return createUnplugin(() => ({
|
return createUnplugin(() => ({
|
||||||
name: 'nuxt:components:imports',
|
name: 'nuxt:components:imports',
|
||||||
|
enforce: 'post',
|
||||||
transformInclude (id) {
|
transformInclude (id) {
|
||||||
id = normalize(id)
|
id = normalize(id)
|
||||||
return id.startsWith('virtual:') || id.startsWith('\0virtual:') || id.startsWith(nuxt.options.buildDir) || !isIgnored(id)
|
return id.startsWith('virtual:') || id.startsWith('\0virtual:') || id.startsWith(nuxt.options.buildDir) || !isIgnored(id)
|
||||||
|
Loading…
Reference in New Issue
Block a user