@sentry/sveltekit bloats node_modules in a production build
維護者通常 1 天內回覆
@chargome 已經在處理了。
開始於 2026年10月9日。
評估
這個 Issue 還沒有評估資料。
描述
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
11.4.0
Framework Version
@sveltejs/kit 2.70.3
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://stackblitz.com/edit/sveltejs-kit-template-default-zp5huzg7
@sveltejs/adapter-node requires node_modules (production dependencies only) to be deployed to the server. When using @sentry/sveltekit packages like @sentry/bundler-plugins end up on the server making deploys way bigger than needed. Is it possible to make the default behavior for @sentry/sveltekit being a dev dependency, and bundling only the needed node code to prevent dependency bloat? This would save ±130MB in the production deploy.
Real world example in my case is 208MB which could be 73MB by just ignoring @sentry/bundler-plugins in production installs. I'm already cheating by installing @sentry/node for production deps and @sentry/sveltekit only for dev deps.
Steps to Reproduce
- Setup SvelteKit app with @sveltejs/adapter-node
- Follow the @sentry/sveltekit setup steps
- Build app
- Clean npm production install (npm ci --omit dev)
- Inspect node_modules
Expected Result
Reasonable size of dependencies for compiled production applications.
Actual Result
130MB dependencies needed for compiling, not for running.
Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
- 主要語言
- TypeScript
- 星號
- 8.8k
- 分支
- 1.9k
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 744
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-javascript 的其他 Issue
-
AWS Lambda Waiting for: Product Owner
難度 1/5 1 小時以內 新手友好度 82/100
getsentry/sentry-javascript#26910 · 1 則留言 ·
維護者通常 1 天內回覆
-
Only create Nuxt database and storage spans when there is a parent span可能重新可做 關聯的 PR 已關閉且未合併。 未關閉Improvement Nuxt
難度 2/5 1-3 小時 新手友好度 83/100
getsentry/sentry-javascript#25805 · 3 則留言 ·
維護者通常 1 天內回覆
-
Only create Cloudflare storage and D1 db spans when there is a parent span可能重新可做 關聯的 PR 已關閉且未合併。 未關閉Cloudflare Workers Improvement Spans
難度 2/5 1-3 小時 新手友好度 78/100
getsentry/sentry-javascript#25804 · 1 則留言 ·
維護者通常 1 天內回覆
-
Core Feature: Typescript Meta: Breaking
難度 2/5 1-3 小時 新手友好度 65/100
getsentry/sentry-javascript#25286 · 2 則留言 ·
維護者通常 1 天內回覆
-
javascript
難度 2/5 1-3 小時 新手友好度 75/100
getsentry/sentry-javascript#24200 · 2 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
garrytan/gbrain#10437 · 1 則留言 ·
維護者通常 1 天內回覆
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"可能已有人在做 @acmerfight 今天認領。 未關閉untriaged
難度 2/5 1-3 小時 新手友好度 78/100
earendil-works/pi#12573 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
agentes-chat/agentes-chat#1506 ·
維護者通常 1 天內回覆
-
comp/desktop desktop/files os/windows P2 type/perf
難度 2/5 1-3 小時 新手友好度 80/100
NousResearch/hermes-agent#160359 ·
維護者通常 1 天內回覆
-
Missing repro Platform: Android
難度 2/5 1-3 小時 新手友好度 76/100
software-mansion/react-native-reanimated#11554 · 1 則留言 ·
維護者通常 1 天內回覆