diff --git a/components/cosmetic_filters/resources/data/BUILD.gn b/components/cosmetic_filters/resources/data/BUILD.gn index eae961e4b2f3..eaa663a8822b 100644 --- a/components/cosmetic_filters/resources/data/BUILD.gn +++ b/components/cosmetic_filters/resources/data/BUILD.gn @@ -8,16 +8,23 @@ import("//tools/grit/grit_rule.gni") import("//tools/grit/repack.gni") transpile_web_ui("cosmetic_filters_resources") { - entry_points = [ - [ - "cosmetic_filters", - rebase_path("content_cosmetic.ts"), - ], - [ - "element_picker", - rebase_path("element_picker.ts"), - ], - ] + entry_points = [ [ + "cosmetic_filters_core", + rebase_path("cosmetic_filters_core.ts"), + ] ] + + if (!is_ios) { + entry_points += [ + [ + "cosmetic_filters", + rebase_path("content_cosmetic.ts"), + ], + [ + "element_picker", + rebase_path("element_picker.ts"), + ], + ] + } resource_name = "cosmetic_filters" } diff --git a/components/cosmetic_filters/resources/data/cosmetic_filters_core.ts b/components/cosmetic_filters/resources/data/cosmetic_filters_core.ts new file mode 100644 index 000000000000..7906a21bcf5a --- /dev/null +++ b/components/cosmetic_filters/resources/data/cosmetic_filters_core.ts @@ -0,0 +1,6 @@ +// Copyright (c) 2024 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/. + +console.log('script test') diff --git a/ios/browser/api/brave_shields/BUILD.gn b/ios/browser/api/brave_shields/BUILD.gn index cd067badc4f1..63ef44cb3a70 100644 --- a/ios/browser/api/brave_shields/BUILD.gn +++ b/ios/browser/api/brave_shields/BUILD.gn @@ -21,6 +21,7 @@ source_set("brave_shields") { "//brave/components/brave_shields/adblock:rust_lib", "//brave/components/brave_shields/core/browser", "//brave/components/brave_shields/core/common", + "//brave/components/cosmetic_filters/resources/data:generated_resources", "//components/component_updater", "//ios/chrome/browser/shared/model/application_context", ]