Skip to content

Commit 8b16523

Browse files
committed
feat: add react-devtools-fusebox as third party dependency
1 parent 61d41e6 commit 8b16523

File tree

10 files changed

+62000
-0
lines changed

10 files changed

+62000
-0
lines changed

config/gni/devtools_grd_files.gni

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ grd_files_release_sources = [
608608
"front_end/third_party/marked/marked.js",
609609
"front_end/third_party/puppeteer-replay/puppeteer-replay.js",
610610
"front_end/third_party/puppeteer/puppeteer.js",
611+
"front_end/third_party/react-devtools/frontend.css.js",
612+
"front_end/third_party/react-devtools/frontend.js",
613+
"front_end/third_party/react-devtools/react-devtools.js",
611614
"front_end/third_party/wasmparser/wasmparser.js",
612615
"front_end/ui/components/adorners/adorners.js",
613616
"front_end/ui/components/buttons/buttons.js",

front_end/panels/react_devtools/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ devtools_module("react_devtools") {
2828

2929
deps = [
3030
"../../models/react_native:bundle",
31+
"../../third_party/react-devtools:bundle",
3132
"../../ui/legacy:bundle",
3233
]
3334
}

front_end/third_party/additional_readme_paths.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"marked",
1212
"puppeteer",
1313
"puppeteer-replay",
14+
"react-devtools",
1415
"wasmparser"
1516
]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2019 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../../scripts/build/ninja/devtools_entrypoint.gni")
6+
import("../../../scripts/build/ninja/devtools_pre_built.gni")
7+
import("../../../scripts/build/ninja/generate_css.gni")
8+
import("../../../scripts/build/ninja/vars.gni")
9+
import("../visibility.gni")
10+
11+
generate_css("css_files") {
12+
sources = [ "frontend.css" ]
13+
}
14+
15+
devtools_pre_built("react-devtools") {
16+
sources_are_release = false
17+
18+
sources = [
19+
"react-devtools-tsconfig.json",
20+
"frontend.d.ts",
21+
"frontend.js",
22+
]
23+
}
24+
25+
devtools_entrypoint("bundle") {
26+
entrypoint = "react-devtools.ts"
27+
28+
deps = [
29+
":css_files",
30+
":react-devtools",
31+
]
32+
33+
visibility = [ "../../panels/react_devtools/*" ]
34+
visibility += devtools_third_party_visibility
35+
}

0 commit comments

Comments
 (0)