mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: prioritize nuxtDir in modulesDir
This commit is contained in:
parent
ef5b910112
commit
2656529771
@ -53,7 +53,8 @@ Options.from = function (_options) {
|
||||
|
||||
// Populate modulesDir
|
||||
options.modulesDir = []
|
||||
.concat(options.modulesDir, join(options.nuxtDir, 'node_modules'))
|
||||
.concat(join(options.nuxtDir, 'node_modules'))
|
||||
.concat(options.modulesDir)
|
||||
.filter(dir => hasValue(dir))
|
||||
.map(dir => resolve(options.rootDir, dir))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user