vue-instantsearch
vue-instantsearch copied to clipboard
tree shaking is not working correctly
Bug 🐞
What is the current behavior?
Importing any component with the "recommended" way will end up with a bundle which includes the other connectors & components
Make a sandbox with the current behavior
https://codesandbox.io/s/vue-instantsearch-app-vkq46
What is the expected behavior?
bundle gets tree shaked
Does this happen only in specific situations?
seems always
What is the proposed solution?
I tried:
- sideEffects: false -> doesn't seem to do anything
- changing
files
to includesrc
, and importing directly -> this works
What is the version you are using?
2.3.0
Always try the latest one before opening an issue.
see also this discourse post: https://discourse.algolia.com/t/webpack-tree-shaking-not-working-w-vue-instantsearch/8579/2
I believe this has been fixed by #866