javascriptwebpackindexeddbhot-module-replacement

IndexedDB filled with Webpack bundled files


While cleaning some stuff I found this folder: C:\Users\user\AppData\Local\Microsoft\Edge\User Data\Default\IndexedDB\devtools_devtools_0.indexeddb.blob\1 that had 5 GB of pure webpack bundles.

My problem is that most of it (if not all) was generated by my own projects that used webpack. Is this an Edge or a webpack hmr bug/feature. And if so, is there a fix?


Solution

  • Edge DevTools caches loaded source maps for about 30 days. So, this folder should not keep growing forever.

    You can clear the source map cache this way:

    1. Open the Command menu with Ctrl+shift+P (replace Ctrl with Cmd if you're on Mac).
    2. Start typing the word "Clear" and choose the Clear source maps cache command, press Enter.

    Screenshot of Edge DevTools, with the Command menu opened and showing the Clear source maps cache command