fix resolvePath with relative paths

This commit is contained in:
Pooya Parsa 2018-03-16 23:33:33 +03:30
parent f186e1bd74
commit 6e54a3868d

View File

@ -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
}
}