Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): ensure component dirs in node_modules have lower scannin…
Browse files Browse the repository at this point in the history
…g priority (#6382)
  • Loading branch information
CodeDredd authored Aug 9, 2022
1 parent 03cd671 commit 0b22079
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nuxt/src/components/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ export default defineNuxtModule<ComponentsOptions>({
}
}).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))
})

Expand Down

0 comments on commit 0b22079

Please sign in to comment.