Please provide the following:
- SDK Version: 37
- Platforms(Android/iOS/web/all): Android
I’m using Expo and Typeorm for the Android app, in dev mode it’s working, but when in the production publication there are errors that I found to be related to the minify / uglify changing the class and function names
the workaround im using is disable it in
node_modules\metro-config\src\defaults\index.js
minifierConfig: {
keep_classnames: true, // enable to fix typeorm
keep_fnames: true, // enable to fix typeorm
mangle: {
// toplevel: false,
keep_classnames: true, // enable to fix typeorm
keep_fnames: true, // enable to fix typeorm
},
output: {
ascii_only: true,
quote_style: 3,
wrap_iife: true
},
sourceMap: {
includeSources: false
},
toplevel: false,
compress: {
// reduce_funcs inlines single-use functions, which cause perf regressions.
reduce_funcs: false
}
},
is there anyway to configure it in expo? i tried metro.config.js without success