Closed ajmas closed 2 years ago
Actually it turns out that we can do this instead:
import LokidIndexedAdapter from 'lokijs/src/loki-indexed-adapter';
At the same time it would be curious if there is interest to moving to ES6 coding approaches?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Looking at
src/lokijs.js
I see that the Loki IndexedDb adapter is not exported. At the moment in ES6 code I can do:but I can't do the same for
LokiIndexedDbAdapter
. This would need a change so that insrc/lokijs.js
:Though given the code structure, that would mean bring in the code from
src/loki-indexed-adapter.js
. One question here, is whether there is any reason why there is no importing of functionality via arequire
?