Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Warning from vite about using eval #221

@crystalfp

Description

@crystalfp

Bottleneck has served me well in a standalone typescript application (not involving Redis).
Now I moved this code inside an Electron application built using vite and the following warnings appear during build for development and production:

node_modules/bottleneck/lib/RedisConnection.js (18:21) Use of eval in "node_modules/bottleneck/lib/RedisConnection.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/bottleneck/lib/IORedisConnection.js (26:21) Use of eval in "node_modules/bottleneck/lib/IORedisConnection.js" is strongly discouraged as it poses security risks and may cause issues with minification.

I don't use Redis.
Is it possible to load these modules only if Redis is used?
Well, seems everything works in spite of these warning, but they are annoying.
Thanks.
mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions