javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles
MIT License
196 stars 100 forks source link

Different configurations for different files #3

Closed jesucarr closed 6 years ago

jesucarr commented 6 years ago

Is there a way to set different obfuscatorOptions for different files?

ds300 commented 6 years ago

Hi! :wave: Sorry for the delay in responding. Unfortunately there is no way to configure the obfuscator on a per-file basis at the moment.

jesucarr commented 6 years ago

I managed to create 2 transformers and load conditionally so I guess it's not needed

satheeshwaran commented 4 years ago

@jesucarr I am trying to create two transformers for different file types, how did you handle it?

jesucarr commented 4 years ago

@satheeshwaran using module.exports.transform with an if inside