Skip to content

Missing globals injection #52

@johnpyp

Description

@johnpyp

Environment

Vite, Rolldown, Electron, NodeJS

Steps to Reproduce

These bundler plugins, and the rolldown implementation, only support the injection of the debugId comment.

However, I don't think that's sufficient for most applications that would actually look to use this? The Sentry SDKs inject the _sentryDebugIds global management code.

The only other compliant 3rd party implementation I noticed was Turbopack's

Both of these don't just stop with the comment, but also inject the global-mutating code.

Expected Result

Expected this vendor neutral implementation to also inject the global which would be the best path towards actually implementing this (as opposed to using the manual resolve functions which I'd expect to be slow and unreliable, comparatively).

Actual Result

Did not inject the global.


Also, as an aside, I'm curious why sentry uses _sentryDebugIds and isn't "standardized" on _debugIds? Is there a format difference? Usage difference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions