Skip to content

Commit c7fc919

Browse files
committed
refactor(@angular/ssr): relocate Node.js Request and Response Helpers to /node entry point
This refactor moves the Node.js-specific request and response helper functions to the /node entry point. This change improves modularity by separating Node.js-specific logic from the main SSR codebase.
1 parent a4d54bb commit c7fc919

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

packages/angular/ssr/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ ts_library(
1717
],
1818
),
1919
module_name = "@angular/ssr",
20+
tsconfig = "//:tsconfig-build-ng",
2021
deps = [
2122
"//packages/angular/ssr/third_party/critters:bundled_critters_lib",
2223
"@npm//@angular/common",
2324
"@npm//@angular/core",
2425
"@npm//@angular/platform-server",
2526
"@npm//@angular/router",
26-
"@npm//@types/node",
2727
],
2828
)
2929

@@ -35,6 +35,7 @@ ng_package(
3535
"//packages/angular/ssr/third_party/critters:bundled_critters_lib",
3636
],
3737
externals = [
38+
"tslib",
3839
"express",
3940
"../../third_party/critters",
4041
],
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
2+
load("//tools:defaults.bzl", "ts_library")
3+
4+
ts_library(
5+
name = "unit_test_lib",
6+
testonly = True,
7+
srcs = glob(["**/*_spec.ts"]),
8+
deps = [
9+
"//packages/angular/ssr/node",
10+
],
11+
)
12+
13+
jasmine_node_test(
14+
name = "test",
15+
deps = [
16+
":unit_test_lib",
17+
],
18+
)

0 commit comments

Comments
 (0)