mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit provides a tree shakable error message (+doc) when JSONP request is made without loading the `HttpClientJsonpModule`. PR Close #50376
38 lines
762 B
Text
38 lines
762 B
Text
load("//tools:defaults.bzl", "api_golden_test", "ng_module")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files(["package.json"])
|
|
|
|
ng_module(
|
|
name = "http",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
"//packages/common",
|
|
"//packages/core",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "files_for_docgen",
|
|
srcs = glob([
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
]) + ["PACKAGE.md"],
|
|
)
|
|
|
|
api_golden_test(
|
|
name = "http_errors",
|
|
data = [
|
|
"//goldens:public-api",
|
|
"//packages/common/http",
|
|
],
|
|
entry_point = "angular/packages/common/http/src/errors.d.ts",
|
|
golden = "angular/goldens/public-api/common/http/errors.md",
|
|
)
|