Handle hot JavaScript module deletion
kireerik opened this issue · 1 comments
kireerik commented
refo/index/index/core/watch/index.js
Line 41 in 29af0b9
case 'deleted':
const staticFilePath = filePath.toStaticDirectory()
// handle delete
//handle(filePath, true)
if (fs.existsSync(staticFilePath))
fs.unlink(staticFilePath)
break;
kireerik commented
refo/index/index/main/handlers.js
Line 37 in ec7f6c3
refo/index/index/main/handlers.js
Line 63 in ec7f6c3