Closed HerbCaudill closed 4 years ago
We're currently using my fork of idb.
https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe/package.json#L29
My fork just adds a file called with-async-ittr-cjs.d.ts that is a copy of the existing with-async-ittr-es.d.ts. We then import that file in the IndexedDb adapter.
with-async-ittr-cjs.d.ts
with-async-ittr-es.d.ts
https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe-storage-indexeddb/index.ts#L3
IIRC everything works fine with the es version of that file, except Jest is unhappy.
es
See https://github.com/jakearchibald/idb/pull/137
fixed in #67
We're currently using my fork of idb.
https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe/package.json#L29
My fork just adds a file called
with-async-ittr-cjs.d.ts
that is a copy of the existingwith-async-ittr-es.d.ts
. We then import that file in the IndexedDb adapter.https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe-storage-indexeddb/index.ts#L3
IIRC everything works fine with the
es
version of that file, except Jest is unhappy.