mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
REF: remove prepare build patches
This commit is contained in:
parent
831605023e
commit
cc541c6b9c
4 changed files with 0 additions and 34 deletions
|
@ -26,7 +26,6 @@
|
|||
"npm": ">=6.9.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "./patches/fix_mangle.sh; git apply patches/minifier.js.patch; git apply patches/minify.js.patch",
|
||||
"clean": "cd android/; ./gradlew clean; cd ..; rm -r -f /tmp/metro-cache/; rm -r -f node_modules/; npm cache clean --force; npm i; npm start -- --reset-cache",
|
||||
"releasenotes2json": "./scripts/release-notes.sh > release-notes.txt; node -e 'console.log(JSON.stringify(require(\"fs\").readFileSync(\"release-notes.txt\", \"utf8\")));' > release-notes.json",
|
||||
"podinstall": "./scripts/podinstall.sh",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
grep -rl "mangle: { toplevel: true }" ./node_modules/ | xargs sed -i '' -e "s/mangle: { toplevel: true }/mangle: false/g" || true
|
||||
grep -rl "mangle: {toplevel: true}" ./node_modules/ | xargs sed -i '' -e "s/mangle: {toplevel: true}/mangle: false/g" || true
|
||||
grep -rl "BASE_MAP.fill(255)" ./node_modules/ | xargs sed -i '' -e "s/BASE_MAP.fill(255)/for (let c = 0 ; c< 256; c++) BASE_MAP[c] = 255;/g" || true
|
||||
echo fix_mangle.sh done
|
|
@ -1,15 +0,0 @@
|
|||
diff --git a/node_modules/metro-minify-uglify/src/minifier.js b/node_modules/metro-minify-uglify/src/minifier.js
|
||||
index b703ee4..fadc077 100644
|
||||
--- a/node_modules/metro-minify-uglify/src/minifier.js
|
||||
+++ b/node_modules/metro-minify-uglify/src/minifier.js
|
||||
@@ -67,9 +67,7 @@ function minify(_ref) {
|
||||
config = _ref.config;
|
||||
|
||||
const options = _objectSpread({}, config, {
|
||||
- mangle: _objectSpread({}, config.mangle, {
|
||||
- reserved
|
||||
- }),
|
||||
+ mangle: false, // !!!!!!!!!!!!!!!!!!!!!!!!
|
||||
sourceMap: _objectSpread({}, config.sourceMap, {
|
||||
content: map
|
||||
})
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/node_modules/uglify-es/lib/minify.js b/node_modules/uglify-es/lib/minify.js
|
||||
index ee1d478..966f7ad 100644
|
||||
--- a/node_modules/uglify-es/lib/minify.js
|
||||
+++ b/node_modules/uglify-es/lib/minify.js
|
||||
@@ -51,7 +51,7 @@ function minify(files, options) {
|
||||
ie8: false,
|
||||
keep_classnames: undefined,
|
||||
keep_fnames: false,
|
||||
- mangle: {},
|
||||
+ mangle: false, // !!!!!!!!!!!!!!!!!!!!
|
||||
nameCache: null,
|
||||
output: {},
|
||||
parse: {},
|
Loading…
Add table
Reference in a new issue