Skip to content

Commit

Permalink
refactor: removes @angular/ssr/tokens and imports the symbols from …
Browse files Browse the repository at this point in the history
…`@angular/core`

Since the symbols are exposed from `@angular/core`, there is no need for a separate export in `@angular/ssr/tokens` anymore.

(cherry picked from commit 114673f)
  • Loading branch information
dgp1130 authored and jkrems committed Nov 15, 2024
1 parent bee0ec0 commit 684f62c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 132 deletions.
20 changes: 0 additions & 20 deletions goldens/public-api/angular/ssr/tokens/index.api.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/angular/ssr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ ts_library(
tsconfig = "//:tsconfig-build-ng",
deps = [
"//packages/angular/ssr/third_party/beasties:bundled_beasties_lib",
"//packages/angular/ssr/tokens",
"@npm//@angular/common",
"@npm//@angular/core",
"@npm//@angular/platform-server",
Expand All @@ -39,7 +38,6 @@ ng_package(
externals = [
"@angular/ssr",
"@angular/ssr/node",
"@angular/ssr/tokens",
"../../third_party/beasties",
],
nested_packages = [
Expand All @@ -49,7 +47,6 @@ ng_package(
deps = [
":ssr",
"//packages/angular/ssr/node",
"//packages/angular/ssr/tokens",
],
)

Expand Down
10 changes: 8 additions & 2 deletions packages/angular/ssr/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
* found in the LICENSE file at https://angular.dev/license
*/

import { LOCALE_ID, StaticProvider, ɵresetCompiledComponents } from '@angular/core';
import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from '@angular/ssr/tokens';
import {
LOCALE_ID,
REQUEST,
REQUEST_CONTEXT,
RESPONSE_INIT,
StaticProvider,
ɵresetCompiledComponents,
} from '@angular/core';
import { ServerAssets } from './assets';
import { Hooks } from './hooks';
import { getAngularAppManifest } from './manifest';
Expand Down
19 changes: 0 additions & 19 deletions packages/angular/ssr/tokens/BUILD.bazel

This file was deleted.

9 changes: 0 additions & 9 deletions packages/angular/ssr/tokens/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/angular/ssr/tokens/public_api.ts

This file was deleted.

70 changes: 0 additions & 70 deletions packages/angular/ssr/tokens/src/tokens.ts

This file was deleted.

0 comments on commit 684f62c

Please sign in to comment.