You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was confused about how to import adaptors until I saw this thread: #568
I am under the impression that we could improve the way to import adaptors to support a syntax similar to:
import{indexedAdapter}from'lokijs'
When we provide separate package.json entry points with eg. main and module fields, we could use something like Rollup to easily provide a CommonJS distribution script for main which will work in NodeJS environments and provide the ESM (ES module) distribution script for module for browsers and bundlers like Webpack and Rollup.
Bundlers would treeshake the main lib to only take out the adaptor in case the import method like above is used.
The text was updated successfully, but these errors were encountered:
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.
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.
I was confused about how to import adaptors until I saw this thread:
#568
I am under the impression that we could improve the way to import adaptors to support a syntax similar to:
When we provide separate
package.json
entry points with eg.main
andmodule
fields, we could use something like Rollup to easily provide a CommonJS distribution script formain
which will work in NodeJS environments and provide the ESM (ES module) distribution script formodule
for browsers and bundlers like Webpack and Rollup.Bundlers would treeshake the main lib to only take out the adaptor in case the import method like above is used.
The text was updated successfully, but these errors were encountered: