histoire
histoire copied to clipboard
Warning in build = Use of eval in flexsearch
Describe the bug
When I build my Histoire stories I get the following warning. Use of eval in "node_modules/flexsearch/dist/flexsearch.bundle.js" is strongly discouraged as it poses security risks and may cause issues with minification. Flexsearch is included in my bundle because Histoire requires it. I have no other packages that require flexsearch. Because of this warning I can no longer add the Histoire build to my Github actions.
Reproduction
https://stackblitz.com/edit/histoire-vue3-starter-h4ejvh?file=package.json
If I use the Vue starter exactly as it is now and run npm run story:build I get this warning.
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.