* Revert "Revert "On demand loading wallet-standard" (#17131)"
This reverts commit 1e3bae927c.
* Cherry-pick [WebUI: Roll Terser to v5.16.2](https://chromium-review.googlesource.com/c/chromium/src/+/4218203)
in a less invasive way by pointing it to brave local terser. Otherwise
we will have to also cherry-pick
https://chromium-review.googlesource.com/c/chromium/src/+/4160349 and
https://chromium-review.googlesource.com/c/chromium/src/+/4214416 otherwise
we won't have a matching node_modules.tar.gz.sha1
---
The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and
methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
14 lines
568 B
Diff
14 lines
568 B
Diff
diff --git a/third_party/node/node_modules.py b/third_party/node/node_modules.py
|
|
index a6ae339fa34c5a1651d2a4ae613e399c588415ce..98d4febedea192709aeb024d4b681b37372f8b07 100755
|
|
--- a/third_party/node/node_modules.py
|
|
+++ b/third_party/node/node_modules.py
|
|
@@ -30,7 +30,7 @@ def PathToSvgo():
|
|
|
|
|
|
def PathToTerser():
|
|
- return _path_in_node_modules('terser', 'bin', 'terser')
|
|
+ return os_path.join('..', '..', 'brave', 'node_modules', 'terser', 'bin', 'terser')
|
|
|
|
# Typescript is not approved for general use in Chromium. Email chromium-dev
|
|
# if you want to use it.
|