Package Exports
- require-uncached
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (require-uncached) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
require-uncached 
Require a module bypassing the cache
Useful for testing purposes when you need to freshly require a module.
Install
$ npm install --save require-uncachedUsage
// foo.js
let i = 0;
module.exports = () => ++i;const requireUncached = require('require-uncached');
require('./foo')();
//=> 1
require('./foo')();
//=> 2
requireUncached('./foo')();
//=> 1
requireUncached('./foo')();
//=> 1Related
- clear-require - Clear a module from the require cache
License
MIT © Sindre Sorhus