Skip to content

Commit

Permalink
feat: add react-devtools-fusebox as third party dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxyq committed Apr 11, 2024
1 parent 61d41e6 commit 8b16523
Show file tree
Hide file tree
Showing 10 changed files with 62,000 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/gni/devtools_grd_files.gni
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ grd_files_release_sources = [
"front_end/third_party/marked/marked.js",
"front_end/third_party/puppeteer-replay/puppeteer-replay.js",
"front_end/third_party/puppeteer/puppeteer.js",
"front_end/third_party/react-devtools/frontend.css.js",
"front_end/third_party/react-devtools/frontend.js",
"front_end/third_party/react-devtools/react-devtools.js",
"front_end/third_party/wasmparser/wasmparser.js",
"front_end/ui/components/adorners/adorners.js",
"front_end/ui/components/buttons/buttons.js",
Expand Down
1 change: 1 addition & 0 deletions front_end/panels/react_devtools/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ devtools_module("react_devtools") {

deps = [
"../../models/react_native:bundle",
"../../third_party/react-devtools:bundle",
"../../ui/legacy:bundle",
]
}
Expand Down
1 change: 1 addition & 0 deletions front_end/third_party/additional_readme_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"marked",
"puppeteer",
"puppeteer-replay",
"react-devtools",
"wasmparser"
]
35 changes: 35 additions & 0 deletions front_end/third_party/react-devtools/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("../../../scripts/build/ninja/devtools_entrypoint.gni")
import("../../../scripts/build/ninja/devtools_pre_built.gni")
import("../../../scripts/build/ninja/generate_css.gni")
import("../../../scripts/build/ninja/vars.gni")
import("../visibility.gni")

generate_css("css_files") {
sources = [ "frontend.css" ]
}

devtools_pre_built("react-devtools") {
sources_are_release = false

sources = [
"react-devtools-tsconfig.json",
"frontend.d.ts",
"frontend.js",
]
}

devtools_entrypoint("bundle") {
entrypoint = "react-devtools.ts"

deps = [
":css_files",
":react-devtools",
]

visibility = [ "../../panels/react_devtools/*" ]
visibility += devtools_third_party_visibility
}
Loading

0 comments on commit 8b16523

Please sign in to comment.