Wipes webpack internal module cache in a controlled way for testing and mocking. Version 2.1.0 is stable; low release cadence. Requires NamedModulesPlugin and HotModuleReplacementPlugin in webpack config. Provides a filter-and-bubble approach to selectively clear cache entries. Useful with proxyquire and similar testing libraries.
npm install wipe-webpack-cacheVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use the wipe function to clear module cache for testing.
Add new webpack.NamedModulesPlugin() and new webpack.HotModuleReplacementPlugin() to plugins array.
Run npm install --save-dev wipe-webpack-cache
Use import { wipe } from 'wipe-webpack-cache' or import wipe from 'wipe-webpack-cache'No dependency data recorded yet.