Closed iruzevic closed 4 years ago
Good find. Taking a look.
great tnx. I have a new update. when I put this inside options:
tokenSeparator: '|',
it works great on modern browsers but IE11 returns fatal error
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
Version: 3.2.1 Browser: chrome latest Os: osx
I'm using fuse.js in my project, everything is fine when I build it in production mode using webpack. But when I run it via code optimisations and minification from Wp rocket cache plugin it breaks.
The problem occurs in the console:
I debugged and the problem and it occures here:
I have managed to fix this by adding this to my options:
Generally I think that the problem lies in the spacing in this line: "/ +/g" Optimisation plugin removes all unnecesery white spaces that are not strings inside quotes and when it does, your plugin will not work. Please check this and provide a fix, this is a nasty bug that happends in edge cases. At lease write this inside the documentation.
tnx. If you need any more code samples please ask.