sindresorhus / import-fresh

Import a module while bypassing the cache
MIT License
284 stars 25 forks source link

How this could be useful to import-new recursively? #17

Open jah0wl opened 4 years ago

jah0wl commented 4 years ago

Yes, you get a new fresh import, but if what imports requires modules, those are still cached... :(

sindresorhus commented 4 years ago

I guess we could clear recursively with an opt-out. Sometimes doing it recursively creates problems. For now, you could use https://github.com/sindresorhus/clear-module instead, which does clear the cache recursively.