build: enable bundle_dts for a number of packages (#28726)
This change enables dts bundling for the following packages and their secondary entry points: - @angular/animations - @angular/elements - @angular/http - @angular/platform-browser - @angular/platform-browser-dynamic - @angular/platform-server - @angular/platform-webworker - @angular/platform-webworker-dynamic - @angular/servce-worker Dts bundling happens in `ng_module` bazel definition, hence packages such as `@angular/compiler`, `@angular/compiler-cli` and `@angular/langauge service` cannot be flattened as they use `ts_library`. `@angular/core`, `@angular/common`, `@angular/upgrade` and `@angular/forms` will be done seperatly as it requires some changes either to their source or specs. PR Close #28726
This commit is contained in:
parent
02ee8c7bc5
commit
fd4e1d69ee
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
],
|
||||
|
|
|
@ -12,6 +12,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/core",
|
||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
|||
ng_module(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/platform-browser",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/platform-browser",
|
||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
|||
ng_module(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/http",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/common",
|
||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
|||
ng_module(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/compiler",
|
||||
"//packages/compiler/testing",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/common",
|
||||
|
|
|
@ -12,6 +12,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
|||
ng_module(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/core/testing",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/animations/browser",
|
||||
"//packages/common",
|
||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
|||
ng_module(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/core",
|
||||
"//packages/platform-browser-dynamic/testing",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/common",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/common",
|
||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
bundle_dts = True,
|
||||
deps = [
|
||||
"//packages/common",
|
||||
"//packages/core",
|
||||
|
|
|
@ -10,5 +10,6 @@ ng_module(
|
|||
"*.ts",
|
||||
"src/**/*.ts",
|
||||
]),
|
||||
bundle_dts = True,
|
||||
deps = ["//packages/core"],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue