histoire icon indicating copy to clipboard operation
histoire copied to clipboard

Warning in build = Use of eval in flexsearch

Open DanielleConstell opened this issue 2 years ago • 1 comments

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

DanielleConstell avatar Dec 08 '23 13:12 DanielleConstell