krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.79k stars 756 forks source link

Declare module as side effect free #597

Closed sventschui closed 2 years ago

sventschui commented 2 years ago

We're using fuse.js in our UI library that is used across various microfrontend modules. Unfortunately fuse.js doesn't tree-shake away when a module is not using the search part of our UI library. With this change, webpack is able to tree-shake fuse.js successfully.