Skip to content

[workbox-build] Deprecated subdependencies: source-map@0.8.0-beta.0 and sourcemap-codec@1.4.8 #3451

@SpaceTimee

Description

@SpaceTimee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions