Help needed: Template7 and vite: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification

Dear @nolimits4web,

I have been extensively using Template7 in my code. I use vite as a bundler. The code works fine when used in non-production, but not when built for production. I get warnings like: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification. Clearly, this is because of Template7 (as I see eval being used there). Do you think using new Function() can solve the problem?

Any suggestion? TIA!

I tried fixing the issue using Function constructor, but that’s not an easy job for me.