mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This disables esbuild minification when building DevTools in debug mode, introducing a new `//devtools:debug` flag and a `pnpm run devtools:build:chrome:dev` script to trigger it. This should make debugging a little easier.
34 lines
587 B
Text
34 lines
587 B
Text
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
|
|
load("//devtools/tools:defaults.bzl", "ts_config")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
bool_flag(
|
|
name = "debug",
|
|
build_setting_default = False,
|
|
)
|
|
|
|
config_setting(
|
|
name = "debug_build",
|
|
flag_values = {
|
|
":debug": "True",
|
|
},
|
|
)
|
|
|
|
exports_files([
|
|
"tsconfig.json",
|
|
"cypress.json",
|
|
])
|
|
|
|
ts_config(
|
|
name = "tsconfig_build",
|
|
src = "tsconfig.json",
|
|
)
|
|
|
|
ts_config(
|
|
name = "tsconfig_test",
|
|
src = "tsconfig-test.json",
|
|
deps = [
|
|
":tsconfig_build",
|
|
],
|
|
)
|