Skip to content

Fix SDK source in CDN bundles #13435

@mydea

Description

@mydea

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.26.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Expected Result

Should return cdn.

Actual Result

Return npm

The problem is that we replace __SENTRY_SDK_SOURCE__ in the utils package already with npm, then we try to replace it again when building the CDN bundles, but at this point the magic string is already gone..

We should probably do this the same way as we do it for the debug flags, where we replace it twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions