Skip to content

npm package @sentry/sveltekit cannot be bundled by rollup #16190

@ktarmyshov

Description

@ktarmyshov

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

"version": "9.15.0",

Framework Version

sveltekit "version": "2.20.8",

Link to Sentry event

N/A

Reproduction Example/SDK Setup

Warning I become: [plugin node-resolve] Could not resolve import "@sentry/sveltekit"

It also seems to me that the adapter-node also does not bundle it and leaves 'import "@sentry/sveltekit" as is, which means for azure swa this must be accompanied by according package.json (not good).

Could you please take a look and maybe provide just a simple ES npm?

Thnak you,
Konstantin

Steps to Reproduce

clone this branch https://github.com/kt-npm-modules/svelte-adapter-azure-swa/tree/feat/sentry
compare results of npm run build (adapter-node) and npm run build:swa (@ktarmyshov/svelte-adapter-azure-swa)

Expected Result

Sveltekit, adapter-node and other using rollup should be able to bundle @setnry/sveltekit I suppose.

Actual Result

@sentry/sveltekit is not bundled by rollup and left as external dep.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions