chore: fix front
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
const { getDefaultConfig } = require('expo/metro-config');
|
||||
|
||||
const IS_PROD = process.env.NODE_ENV === 'production';
|
||||
|
||||
const config = getDefaultConfig(__dirname);
|
||||
|
||||
if (IS_PROD) {
|
||||
config.transformer = {
|
||||
...config.transformer,
|
||||
babelTransformerPath: require.resolve('react-native-obfuscating-transformer'),
|
||||
obfuscatorOptions: {
|
||||
compact: true,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
renameGlobals: false,
|
||||
rotateStringArray: true,
|
||||
stringArray: true,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayThreshold: 0.75,
|
||||
// Disabled: incompatible with Hermes
|
||||
selfDefending: false,
|
||||
controlFlowFlattening: false,
|
||||
deadCodeInjection: false,
|
||||
transformObjectKeys: false,
|
||||
debugProtection: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
@@ -42,8 +42,6 @@
|
||||
"devDependencies": {
|
||||
"@expo/ngrok": "^4.1.3",
|
||||
"@types/react": "~19.1.0",
|
||||
"javascript-obfuscator": "^4.1.1",
|
||||
"react-native-obfuscating-transformer": "^1.0.0",
|
||||
"typescript": "~5.9.2"
|
||||
},
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user