mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix resolvePath with relative paths
This commit is contained in:
parent
f186e1bd74
commit
6e54a3868d
@ -192,8 +192,8 @@ export default class Nuxt {
|
||||
}
|
||||
|
||||
for (let ext of this.options.extensions) {
|
||||
if (fs.existsSync(_path + '.' + ext)) {
|
||||
return _path + '.' + ext
|
||||
if (fs.existsSync(__path + '.' + ext)) {
|
||||
return __path + '.' + ext
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user