sindresorhus / clear-module

Clear a module from the cache
MIT License
182 stars 25 forks source link

Recursively delete child modules #10

Closed kellyselden closed 5 years ago

kellyselden commented 5 years ago

I have a case where the entry point of a module was not the file storing the state, it only surfaces it. This caused me to recurse module.children and delete, which solved the problem. Would you like me to add this feature, perhaps behind an option?

omrilotan commented 5 years ago

Addressed here https://github.com/sindresorhus/clear-module/pull/9

kellyselden commented 5 years ago

Apologies I missed that.