krisk / Fuse

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

module output in package.json contains non-browser-compatible code #483

Closed lucaschen closed 3 years ago

lucaschen commented 3 years ago

Describe the bug

The module output of fuse.js contains the object spread operator, causing older browsers to break when fuse.js is included via Webpack.

Version

Tested and broken on 6.4.1 (but likely also the case on older versions too)

Is this a regression?

Unlikely

🔬Minimal Reproduction

No real need to reproduce the bug; I can see that transpile: false is being set inside scripts/config.js: https://github.com/krisk/Fuse/blob/master/scripts/configs.js#L120

Additional context

It would be good to understand:

  1. Whether this is an intentional decision;
  2. How we can get around browser compatibility issues when using fuse.js inside of Webpack.

Thanks!

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days