Guest User

Untitled

a guest
Oct 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. const wipe = require('wipe-node-cache') or require('wipe-webpack-cache');
  2.  
  3. const resolver = (stubs, fileName, module) {
  4. // any logic about should one with some file, or not
  5. return !!stubs[fileName];
  6. };
  7.  
  8. // wipe reselect, and everything depends on it, and everything up to the top
  9. wipe({
  10. 'reselect/lib/index.js': true,
  11. 'reselect/es/index.js': true
  12. }, resolver);
Add Comment
Please, Sign In to add comment