mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This change updates the rollup configuration for the core schematics to exclude all `@angular/*` packages from the bundle. This is possible following https://github.com/angular/angular/pull/64703 This significantly reduces the size of the `@angular/core` schematics bundle, resulting in a size reduction to 5.8mb.
40 lines
1.8 KiB
Text
40 lines
1.8 KiB
Text
load("//tools:defaults.bzl", "jasmine_test", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["*.ts"]),
|
|
deps = [
|
|
"//:node_modules/@angular-devkit/core",
|
|
"//:node_modules/@angular-devkit/schematics",
|
|
"//packages/core/schematics/utils",
|
|
"//packages/core/schematics/utils/tsurge",
|
|
],
|
|
)
|
|
|
|
jasmine_test(
|
|
name = "test",
|
|
timeout = "moderate",
|
|
data = [
|
|
":test_lib",
|
|
"//:node_modules/@angular/compiler",
|
|
"//:node_modules/@angular/compiler-cli",
|
|
"//packages/core/schematics:bundles",
|
|
"//packages/core/schematics:schematics_jsons",
|
|
"//packages/core/schematics/migrations/common-to-standalone-migration:static_files",
|
|
"//packages/core/schematics/migrations/control-flow-migration:static_files",
|
|
"//packages/core/schematics/migrations/ngclass-to-class-migration:static_files",
|
|
"//packages/core/schematics/migrations/ngstyle-to-style-migration:static_files",
|
|
"//packages/core/schematics/migrations/router-testing-module-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/cleanup-unused-imports:static_files",
|
|
"//packages/core/schematics/ng-generate/inject-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/output-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/route-lazy-loading:static_files",
|
|
"//packages/core/schematics/ng-generate/self-closing-tags-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/signal-input-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/signal-queries-migration:static_files",
|
|
"//packages/core/schematics/ng-generate/signals:static_files",
|
|
"//packages/core/schematics/ng-generate/standalone-migration:static_files",
|
|
],
|
|
shard_count = 16,
|
|
)
|