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: source-map@0.8.0-beta.0, sourcemap-codec@1.4.8
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:
source-map@0.8.0-beta.0 → Replace with stable source-map or alternative
sourcemap-codec → Replace with @jridgewell/sourcemap-codec (the recommended successor)
Related issues
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.
Environment
Problem
When running
pnpm installorpnpm update, the following deprecation warnings are shown:WARN 2 deprecated subdependencies found: source-map@0.8.0-beta.0, sourcemap-codec@1.4.8Dependency tree
Expected behavior
workbox-buildshould update its dependencies to use non-deprecated packages:source-map@0.8.0-beta.0→ Replace with stablesource-mapor alternativesourcemap-codec→ Replace with@jridgewell/sourcemap-codec(the recommended successor)Related issues
source-map-urlis deprecated #3019Additional context
These warnings appear in every project using
vite-plugin-pwaor any Workbox-based PWA tooling. While they don't affect functionality, they can cause confusion for developers maintaining production applications.