feat: 🔊 fix path in plugin reload log so that it actually works

This commit is contained in:
jay 2021-04-14 09:59:48 +05:00
parent 135ce6567b
commit f50e388c39

View File

@ -62,7 +62,7 @@ reloadplugin = (event, filename, pluginpath) => {
console.info(event, filename)
pluginpath = (pluginpath ? pluginpath : './plugins/') + filename
const check = Object.keys(cfg.plugins)
console.info(`reload file:`, pluginpath)
console.info(`reload file: ./lib/${pluginpath}`)
const plugin = require.resolve(pluginpath)
if (plugin && require.cache[plugin]) {
// console.debug(Object.keys(cfg.plugins))