Skip to content

deleteSourcemapsAfterUpload: true does not delete CSS source maps #18125

@mizdra

Description

@mizdra

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

10.23.0

Framework Version

Next 16.0.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/mizdra/repro-sentry-nextjs-css-source-map

The contents of next.config.ts are as follows:

import {withSentryConfig} from "@sentry/nextjs";
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
};

export default withSentryConfig(nextConfig, {
  silent: true,
  widenClientFileUpload: true,
  sourcemaps: {
    deleteSourcemapsAfterUpload: true,
  },
  disableLogger: true,
});

Steps to Reproduce

$ npm i
$ npm run build
$ find .next/static -name "*.map"

Expected Result

The find command returns nothing.

Actual Result

The find command returns the Source Map for .css.

$ find .next/static -name "*.map"
.next/static/chunks/76bb3875a8d326ec.css.map

Additional Context

The source maps for *.js have been deleted, but the source maps for *.css have not been deleted.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions