#3451·workbox

[workbox-build] Deprecated subdependencies: [email protected] and [email protected]

Author: SpaceTimeeCreated Jan 3, 2026Updated Mar 18, 2026

Environment

  • workbox-build version: 7.4.0
  • Node.js version: v24.x
  • Package manager: pnpm v10.22.0

Problem

When running pnpm install or pnpm update, the following deprecation warnings are shown: WARN 2 deprecated subdependencies found: [email protected], [email protected]

Dependency tree

vite-plugin-pwa 1.2.0
└── workbox-build 7.4.0
    ├── source-map 0.8.0-beta.0        ← deprecated
    └── @rollup/plugin-replace 2.4.2
        └── magic-string 0.25.9
            └── sourcemap-codec 1.4.8  ← deprecated

Expected behavior

workbox-build should update its dependencies to use non-deprecated packages:

  • [email protected] → Replace with stable source-map or alternative
  • sourcemap-codec → Replace with @jridgewell/sourcemap-codec (the recommended successor)

Related issues

  • #3019
  • #3228

Additional context

These warnings appear in every project using vite-plugin-pwa or any Workbox-based PWA tooling. While they don't affect functionality, they can cause confusion for developers maintaining production applications.