mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: prioritize nested node_modules. fixes #2558.
This commit is contained in:
parent
4ec99ef6f6
commit
421070d385
@ -56,8 +56,8 @@ Options.from = function (_options) {
|
||||
|
||||
// Populate modulesDir
|
||||
options.modulesDir = []
|
||||
.concat(join(options.nuxtDir, 'node_modules'))
|
||||
.concat(options.modulesDir)
|
||||
.concat(join(options.nuxtDir, 'node_modules'))
|
||||
.filter(dir => hasValue(dir))
|
||||
.map(dir => resolve(options.rootDir, dir))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user