So I wanted to get a package hot-reload script working, but for some reason it wasn’t reloading correctly. It unloaded and loaded package correctly. But it seems that there’s nothing in
require.cache that has to do with my package. So either the cache is no longer in
require.cache (even though it has over 1.4k keys) or it’s not getting cached there. But then why reloading the package doesn’t work?
Script in question: https://gist.github.com/t9md/362227c7c5eb4aef0f18
Or such thing is not possible anymore?