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",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
],
|
],
|
||||||
|
|
|
@ -12,6 +12,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/animations",
|
"//packages/animations",
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/animations",
|
"//packages/animations",
|
||||||
"//packages/animations/browser",
|
"//packages/animations/browser",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
"//packages/platform-browser",
|
"//packages/platform-browser",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
"//packages/platform-browser",
|
"//packages/platform-browser",
|
||||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
"//packages/http",
|
"//packages/http",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages:types",
|
"//packages:types",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/compiler",
|
"//packages/compiler",
|
||||||
"//packages/compiler/testing",
|
"//packages/compiler/testing",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages:types",
|
"//packages:types",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
|
|
@ -12,6 +12,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/animations",
|
"//packages/animations",
|
||||||
"//packages/animations/browser",
|
"//packages/animations/browser",
|
||||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
"//packages/core/testing",
|
"//packages/core/testing",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/animations/browser",
|
"//packages/animations/browser",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
|
|
@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
"//packages/platform-browser-dynamic/testing",
|
"//packages/platform-browser-dynamic/testing",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages:types",
|
"//packages:types",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages:types",
|
"//packages:types",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
|
|
@ -10,6 +10,7 @@ ng_module(
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
bundle_dts = True,
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
|
|
|
@ -10,5 +10,6 @@ ng_module(
|
||||||
"*.ts",
|
"*.ts",
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
|
bundle_dts = True,
|
||||||
deps = ["//packages/core"],
|
deps = ["//packages/core"],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue