Open timpeer opened 3 months ago
the same issue.
any updates?
my react vite app is not working when I have import.meta.env.VITE_XXXXX. and when I uninstall vite-plugin-javascript-obfuscator, my app also stops working. Now my app only works if I use vite-plugin-javascript-obfuscator in my vite.config.js
So when on obfuscatorPlugin is defined in plugins i'm not able to read .env variables When i comment it obfuscatorPlugin out env variables works as they should.
New on obfuscating apps so i don't know if this is the way do env variables, should i do it another way? eg. env.js and and when building overwrite it like i do with .env