fix: fix resolve project local plugin's file path (#4095)

Thanks to @SneakyMax
See https://github.com/vuejs/vue-cli/issues/4014#issuecomment-497993827

(cherry picked from commit 78e1c4cf63)
This commit is contained in:
Haoqun Jiang
2019-06-04 23:56:55 +08:00
parent 79e4ba4fb3
commit bcc53db2e0

View File

@@ -189,7 +189,7 @@ module.exports = class Service {
}
plugins = plugins.concat(files.map(file => ({
id: `local:${file}`,
apply: loadModule(file, this.pkgContext)
apply: loadModule(`./${file}`, this.pkgContext)
})))
}