vue-instantsearch icon indicating copy to clipboard operation
vue-instantsearch copied to clipboard

tree shaking is not working correctly

Open Haroenv opened this issue 4 years ago • 1 comments

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:

  1. sideEffects: false -> doesn't seem to do anything
  2. changing files to include src, and importing directly -> this works

What is the version you are using?

2.3.0

Always try the latest one before opening an issue.

Haroenv avatar Sep 25 '19 13:09 Haroenv

see also this discourse post: https://discourse.algolia.com/t/webpack-tree-shaking-not-working-w-vue-instantsearch/8579/2

Haroenv avatar Sep 25 '19 13:09 Haroenv

I believe this has been fixed by #866

Haroenv avatar Dec 21 '22 15:12 Haroenv