whoami-shubham / obfuscator-io-metro-plugin

A metro plugin to use the javascript-obfuscator library with react-native to obfuscate the bundle after the build.
https://www.npmjs.com/package/obfuscator-io-metro-plugin
MIT License
63 stars 17 forks source link

Need usefull sourcemaps to debug production code #7

Closed mateosilguero closed 1 year ago

mateosilguero commented 2 years ago

Currently, generated sourcemaps are not usefull to upload to (for example), Sentry o another platform.

Metro is generating source maps that won't be useful after obfuscation.

whoami-shubham commented 2 years ago

generated sourcemap is not useful right now, I will need some help to figure out this.

whoami-shubham commented 1 year ago

I don't think obfuscated/deobfuscated source map will be useful in production since the code is obfuscated so it will generate errors that will have obfuscated variable names. you might have to use some sort of custom error reporting to identify the entry point of error.