This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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: //npmcdn.com/[email protected]/dist/dexie.min.js) | |
* Add the following to your index.ghtml <script src="http://npmcdn.com/[email protected]/dist/dexie.min.js"></script> | |
* Adapted from https://gist.github.com/ineentho/70303c2ccdb69ad3661d | |
*/ | |
;(function(){ | |
var db = new Dexie("jspm"); | |
db.version(1).stores({ files: "&url,format,hash,contents" }); |