meilisearch-js icon indicating copy to clipboard operation
meilisearch-js copied to clipboard

Make package tree shakeable

Open flevi29 opened this issue 7 months ago • 0 comments

Currently there are two sizeable classes exported: MeiliSearch and Index. They contain a lot of methods, whereas the overwhelming majority of websites would only require the search method. We should make these classes tree shakeable, meaning we should split them up into multiple classes.

https://esbuild.github.io/api/#tree-shaking https://web.dev/articles/reduce-javascript-payloads-with-tree-shaking

flevi29 avatar Apr 29 '25 07:04 flevi29