[Angular] Remove unused dependencies: @angular/elements, @angular/platform-server, @angular/ssr, @angular/pwa, @vitest/browser-playwright #1172

Closed
opened 2026-10-02 04:44:19 +00:00 by spikerj · 1 comment
Owner

Why

The changelog review found five installed packages with zero imports — each one adds install time, lockfile churn and upgrade surface every refresh:

Package Evidence
@angular/elements 0 imports
@angular/platform-server 0 imports; no SSR build target
@angular/ssr 0 imports (one comment mention)
@angular/pwa schematic-only package; ngsw is wired via @angular/service-worker
@vitest/browser-playwright no vitest config uses browser mode; every project runs jsdom; only mentioned in package.json, lockfile and a pnpm-workspace.yaml comment

Acceptance criteria

  • re-grep each (imports, project.json executors, schematics, configs, scripts) before removal
  • remove from package.json, update the lockfile and the pnpm-workspace.yaml comments
  • lint / typecheck / test-all / app build / build-storybook green

Size: S.


Filed from the 2026-10-02 spikersoft-angular pnpm outdated changelog review.

## Why The changelog review found five installed packages with **zero imports** — each one adds install time, lockfile churn and upgrade surface every refresh: | Package | Evidence | |---|---| | `@angular/elements` | 0 imports | | `@angular/platform-server` | 0 imports; no SSR build target | | `@angular/ssr` | 0 imports (one comment mention) | | `@angular/pwa` | schematic-only package; ngsw is wired via `@angular/service-worker` | | `@vitest/browser-playwright` | no vitest config uses browser mode; every project runs jsdom; only mentioned in `package.json`, lockfile and a `pnpm-workspace.yaml` comment | ## Acceptance criteria - [ ] re-grep each (imports, `project.json` executors, schematics, configs, scripts) before removal - [ ] remove from `package.json`, update the lockfile and the `pnpm-workspace.yaml` comments - [ ] lint / typecheck / test-all / app build / build-storybook green Size: **S**. --- _Filed from the 2026-10-02 spikersoft-angular `pnpm outdated` changelog review._
spikerj added the enhancement label 2026-10-02 04:44:19 +00:00
Author
Owner

Closing — delivered by spikersoft-angular PR #1418 (merged 2026-10-02, commit c42face20).

  • Removed @angular/platform-server, @angular/ssr, @angular/pwa, @vitest/browser-playwright, plus the dead build:ssr/serve:ssr scripts (they targeted a non-existent spikersoft:server target); README updated.
  • Kept @angular/elements on purpose: rete-angular-plugin declares it as a required peer and calls createCustomElement at runtime, so the ticket's "0 imports" finding was a false positive (verified against node_modules on 2026-10-06).
  • lint / typecheck / production build green locally and in CI on master since the merge (637f469e5 fully green on 2026-10-05).
Closing — delivered by spikersoft-angular PR #1418 (merged 2026-10-02, commit c42face20). - Removed `@angular/platform-server`, `@angular/ssr`, `@angular/pwa`, `@vitest/browser-playwright`, plus the dead `build:ssr`/`serve:ssr` scripts (they targeted a non-existent `spikersoft:server` target); README updated. - **Kept `@angular/elements`** on purpose: `rete-angular-plugin` declares it as a required peer and calls `createCustomElement` at runtime, so the ticket's "0 imports" finding was a false positive (verified against node_modules on 2026-10-06). - lint / typecheck / production build green locally and in CI on master since the merge (637f469e5 fully green on 2026-10-05).
Sign in to join this conversation.