mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +08:00
This is to make const enum in protocol.d.ts works with esbuild in unittest. Without this, const enum usage from protocol.d.ts is not replaced with esbuild. So I need to make protocol.d.ts actual TypeScript file and make it has corresponding JavaScript file with defined enums. I also need to tweak how protocol.js is imported to make build/test pass in both tsc and esbuild with child CL. Bug: 1278663 DISABLE_THIRD_PARTY_CHECK=change generated/ and importing files Change-Id: Ic5f27633c85bbfe8647636beef9b8625f33eabdd Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3367593 Reviewed-by: Tim Van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
24 lines
601 B
Plaintext
24 lines
601 B
Plaintext
# Copyright 2020 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("../../../third_party/typescript/typescript.gni")
|
|
|
|
node_ts_library("network") {
|
|
sources = [
|
|
"network-conditions_test.ts",
|
|
"network-datagrid_test.ts",
|
|
"network-filter_test.ts",
|
|
"network-request-blocking-panel_test.ts",
|
|
"network-request-view_test.ts",
|
|
"network-throttle-persist_test.ts",
|
|
"network_test.ts",
|
|
]
|
|
|
|
deps = [
|
|
"../../../front_end/generated",
|
|
"../../shared",
|
|
"../helpers",
|
|
]
|
|
}
|