Minor fix - datasource hot reloading was working apart from the the CJS require caching, need to clear down the cache entry before reloading.
This commit is contained in:
parent
4f25c6aea9
commit
6bad41e3ce
|
@ -412,6 +412,7 @@ exports.getDatasourcePlugin = async (name, url, hash) => {
|
||||||
return require(filename)
|
return require(filename)
|
||||||
} else {
|
} else {
|
||||||
console.log(`Updating plugin: ${name}`)
|
console.log(`Updating plugin: ${name}`)
|
||||||
|
delete require.cache[require.resolve(filename)]
|
||||||
fs.unlinkSync(filename)
|
fs.unlinkSync(filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue