Skip to content

@sentry/node 11 hard-depends on @sentry/bundler-plugins, shipping bundler tooling into server runtimes #24849

Description

@rtroost

@sentry/node@11.1.0 lists @sentry/bundler-plugins in dependencies, although only the optional @sentry/node/{vite,rollup,webpack,esbuild} entry points use it; the main entry never loads it. For apps that only use the main entry, every production install therefore gets bundler-plugins and its dependencies: the sentry CLI, a native oxc-parser binary, magic-string, dotenv. pnpm also links the optional rollup peer to whatever rollup the workspace has, which produces unmet peer rollup@">=3.2.0" warnings. Removing the package with an override has no effect on the SDK. Could it be an optional peer dependency, or live in a separate package?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions