runet-censorship-bypass/extensions/chromium/runet-censorship-bypass/tools/cacheless-require.js
2017-05-02 11:55:01 -07:00

11 lines
208 B
JavaScript

'ust strict';
module.exports = (parentModule) => function cachelessRequire(path) {
for(let key of Object.keys(require.cache)) {
delete require.cache[key];
}
return parentModule.require(path);
};