mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
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
20 lines
509 B
Python
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
|
|
)
|