Files
AleksanderBodurri d15dca054c fix(devtools): issue where backendReady race condition causes Angular not detected error (#54805)
Previously, a race condition could cause DevTools to enter a state where it can't detect an application on reload. This was caused by a sequencing issue between the content script connection, the devtools panel connection and an event "backendReady" that lets DevTools know when a particular frame is ready to be inspected.

This commit replaces the previously stored backendReady boolean with a promise, so that the devtools panel can eventually run a callback to connect to a content script when that content script emits it's backendReady message.

PR Close #54805
2024-03-26 09:19:06 -07:00

20 lines
509 B
Python

"""Helper macros for compiling typescript with consistent config"""
load("//tools:defaults.bzl", _ts_library = "ts_library")
def ts_library(name, tsconfig = "//devtools:tsconfig.json", **kwargs):
_ts_library(
name = name,
tsconfig = tsconfig,
**kwargs
)
def ts_test_library(name, tsconfig = "//devtools:tsconfig_spec", deps = [], **kwargs):
_ts_library(
name = name,
tsconfig = tsconfig,
testonly = 1,
deps = deps,
**kwargs
)