Created
December 23, 2016 22:59
-
-
Save anggiaj/6dba87a2719372a9f2fd0a4b408a4a6b to your computer and use it in GitHub Desktop.
node js require uncached module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function requireUncached(module) { | |
delete require.cache[require.resolve(module)]; | |
return require(module); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment