sindresorhus / import-fresh

Import a module while bypassing the cache
MIT License
283 stars 24 forks source link

Save and restore cache keys #1

Closed floatdrop closed 10 years ago

floatdrop commented 10 years ago

This will prevent caching of nested requires

sindresorhus commented 10 years ago

Weird, it looks like the fixture.js file is in cache even before the cache var is assigned.

floatdrop commented 10 years ago

This PR is breaking behaviour, that described in readme. As I can understand - now you can require fresh module, even if it was required before. I don't think it is possible to maintain with deep requires.

sindresorhus commented 10 years ago

That's kinda the point of this module though. To require the modules bypassing the cache, even if it has been required previously.

floatdrop commented 10 years ago

Yeah, I not understood it from first read.