build(devtools): cleanup dependencies (#60936)

Removing `platform-browser-dynamic` because we don't need it anymore.

PR Close #60936
This commit is contained in:
Matthieu Riegler
2025-04-20 15:57:51 +02:00
committed by Miles Malerba
parent 8df787e7d5
commit 2df00c9b4b
10 changed files with 10 additions and 43 deletions
@@ -1,5 +1,5 @@
load("//devtools/tools:ng_module.bzl", "ng_module")
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_web")
load("//devtools/tools:ng_module.bzl", "ng_module")
load("//tools:defaults.bzl", "esbuild", "http_server")
package(default_visibility = ["//:__subpackages__"])
@@ -12,7 +12,6 @@ ng_module(
"//packages/common",
"//packages/core",
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
"@npm//@types",
"@npm//rxjs",
],
@@ -11,7 +11,6 @@ import {ChangeDetectorRef, Component} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
standalone: false,
})
export class AppComponent {
counter = 0;
@@ -1,20 +0,0 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {AppComponent} from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
+6 -8
View File
@@ -6,12 +6,10 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {bootstrapApplication} from '@angular/platform-browser';
import {AppComponent} from './app/app.component';
import {provideExperimentalZonelessChangeDetection} from '@angular/core';
import {AppModule} from './app/app.module';
platformBrowserDynamic()
.bootstrapModule(AppModule, {
ngZone: 'noop',
})
.catch((err) => console.error(err));
bootstrapApplication(AppComponent, {
providers: [provideExperimentalZonelessChangeDetection()],
}).catch((err) => console.error(err));
@@ -32,7 +32,6 @@ ts_test_library(
deps = [
":highlighter",
"//packages/core",
"//packages/platform-browser-dynamic",
"@npm//@types",
],
)
@@ -94,7 +93,6 @@ ts_test_library(
":router_tree",
"//devtools/projects/protocol",
"//packages/core",
"//packages/platform-browser-dynamic",
"//packages/router",
"@npm//@types",
],
+1 -2
View File
@@ -1,5 +1,5 @@
load("//devtools/tools:ng_module.bzl", "ng_module")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//devtools/tools:ng_module.bzl", "ng_module")
package(default_visibility = ["//visibility:public"])
@@ -15,7 +15,6 @@ ng_module(
"//packages/common",
"//packages/core",
"//packages/forms",
"//packages/platform-browser-dynamic",
"@npm//@angular/cdk",
"@npm//@angular/material",
"@npm//@types",
@@ -35,7 +35,6 @@ ng_module(
"//packages/animations",
"//packages/core",
"//packages/forms",
"//packages/platform-browser-dynamic",
"@npm//@angular/cdk",
"@npm//@angular/material",
"@npm//@types",
+1 -3
View File
@@ -1,6 +1,6 @@
load("//devtools/tools:typescript.bzl", "ts_library", "ts_test_library")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//devtools/tools:defaults.bzl", "karma_web_test_suite")
load("//devtools/tools:typescript.bzl", "ts_library", "ts_test_library")
package(default_visibility = ["//visibility:public"])
@@ -20,7 +20,6 @@ ts_library(
),
deps = [
"//packages/core",
"//packages/platform-browser-dynamic",
"@npm//@types",
],
)
@@ -33,7 +32,6 @@ ts_test_library(
deps = [
":protocol_ts",
"//packages/core/testing",
"//packages/platform-browser-dynamic/testing",
"@npm//@types",
],
)
+1 -3
View File
@@ -1,6 +1,6 @@
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//devtools/tools:typescript.bzl", "ts_library", "ts_test_library")
load("//devtools/tools:defaults.bzl", "karma_web_test_suite")
load("//devtools/tools:typescript.bzl", "ts_library", "ts_test_library")
package(default_visibility = ["//visibility:public"])
@@ -15,7 +15,6 @@ ts_library(
),
deps = [
"//packages/core",
"//packages/platform-browser-dynamic",
"@npm//@types",
],
)
@@ -32,7 +31,6 @@ ts_test_library(
deps = [
":shared-utils",
"//packages/core",
"//packages/platform-browser-dynamic",
"@npm//@types",
],
)
@@ -67,7 +67,6 @@ ng_module(
"//packages/common",
"//packages/common/http",
"//packages/core",
"//packages/platform-browser-dynamic",
],
)