javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"enableInDevelopment: false" option doesn't seem to be working, typescript builds failing even on on dev mode

TowhidKashem opened this issue · comments

I run the following command as a pre commit git hook to confirm that there aren't any TypeScript errors in the project:

tsc --project tsconfig.json

but after setting up react-native-obfuscating-transformer (which is working great for the intended purpose) this command continues to fail with lots of errors such as these:

Screen Shot 2022-08-14 at 11 01 54 AM

Which makes me think that the obsfucator is running in dev mode even though the default value of enableInDevelopment is supposed to be false and I even explicitly set it to false. Anyone else experiencing this issue?

How did you fix this issue? Because after enabling this variable you probably encountered new TypeScript errors as well?

How did you fix this issue? Because after enabling this variable you probably encountered new TypeScript errors as well?

I don't remember what came of this just that I ended up using this other obfuscator which worked much better:

https://github.com/whoami-shubham/obfuscator-io-metro-plugin