Delete Require Cache

[Solved] Delete Require Cache | Rust - Code Explorer | yomemimo.com
Question : delete require cache

Answered by : aristeidis-pilianidis

//Use this if you want to require a file with updated contents,
//without restarting the Node js server
delete require.cache[require.resolve('./b.js')]

Source : https://stackoverflow.com/questions/15666144/how-to-remove-module-after-require-in-node-js | Last Update : Mon, 10 Jan 22

Answers related to delete require cache

Code Explorer Popular Question For Rust