-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
979db35
commit 01f74cf
Showing
15 changed files
with
356 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
browser/resources/settings/getting_started_page/getting_started.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/tools/grit/grit/format/minifier.py b/tools/grit/grit/format/minifier.py | ||
index bd2dc7f9936a3c3a1d892be3b05be02a6910c571..1cfc9b0031fff73eac149eea137f10c10a0d9b96 100644 | ||
--- a/tools/grit/grit/format/minifier.py | ||
+++ b/tools/grit/grit/format/minifier.py | ||
@@ -13,6 +13,7 @@ __css_minifier = None | ||
js_minifier_ignore_list = [ | ||
# TODO(crbug.com/339686362): Excluded because Terser throws an error. | ||
'gen/chrome/browser/resources/omnibox/tsc/', | ||
+ 'gen/brave/web-ui-some_resource/', | ||
] | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
patches/ui-webui-resources-tools-bundle_js_excludes.gni.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
diff --git a/ui/webui/resources/tools/bundle_js_excludes.gni b/ui/webui/resources/tools/bundle_js_excludes.gni | ||
index 544a35127374b54700255f5902e881fc5fb89d7d..31ceaa0ee30563ce5fb74bcad9dd39a8aece9507 100644 | ||
index 544a35127374b54700255f5902e881fc5fb89d7d..08abc21bfdec4ca042158a4513fed32ff179d68e 100644 | ||
--- a/ui/webui/resources/tools/bundle_js_excludes.gni | ||
+++ b/ui/webui/resources/tools/bundle_js_excludes.gni | ||
@@ -14,6 +14,7 @@ foreach(excluded_file, | ||
"resources/js/load_time_data.js", | ||
"resources/ash/common/load_time_data.m.js", | ||
"resources/mwc/lit/index.js", | ||
+ "resources/brave/leo.bundle.js", | ||
+ "resources/brave/leo.bundle.js", "resources/brave/some_resource.bundle.js", | ||
]) { | ||
# Exclude both the chrome://resources form and the scheme-relative form. | ||
BUNDLE_JS_EXCLUDES += [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* Copyright (c) 2025 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
import { return42 } from 'gen/brave/ui/webui/resources/some_resource/rust_package_1/bundler/pkg' | ||
import { return24 } from 'gen/brave/ui/webui/resources/some_resource/rust_package_2/bundler/pkg' | ||
export { return42, return24 } |
133 changes: 133 additions & 0 deletions
133
ui/webui/resources/some_resource/rust_package_1/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "rust_package_1" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
wasm-bindgen = "=0.2.100" # Must match the version of brave/tools/crates/wasm_bindgen! |
11 changes: 11 additions & 0 deletions
11
ui/webui/resources/some_resource/rust_package_1/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* Copyright (c) 2025 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
use wasm_bindgen::prelude::*; | ||
|
||
#[wasm_bindgen] | ||
pub fn return42() -> i32 { | ||
return 42; | ||
} |
133 changes: 133 additions & 0 deletions
133
ui/webui/resources/some_resource/rust_package_2/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.