1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

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:
mike12345567 2022-09-16 11:25:28 +01:00
parent 4f25c6aea9
commit 6bad41e3ce

View file

@ -412,6 +412,7 @@ exports.getDatasourcePlugin = async (name, url, hash) => {
return require(filename)
} else {
console.log(`Updating plugin: ${name}`)
delete require.cache[require.resolve(filename)]
fs.unlinkSync(filename)
}
}