Skip to content

Instantly share code, notes, and snippets.

View jspm-cache.js
* SystemJS hook that caches load and transpilation results of sources that haven't changed in IndexedDB storage.
* In Chrome dev tools the cache is easily managed under Resources > IndexedDB > jspm
* There's a global dependency on Dexie.js (ex: //
* Add the following to your index.ghtml <script src=""></script>
* Adapted from
var db = new Dexie("jspm");
db.version(1).stores({ files: "&url,format,hash,contents" });