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

Aberta
#24,849 6 comentários 3 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
node.js, typescript
Domínio
backend, build-system

Direção de pesquisa

Start with the @sentry/[email protected] dependency metadata and compare the main entry with the optional @sentry/node/vite, /rollup, /webpack, and /esbuild entry points. Check which packaging arrangement preserves those integrations without installing bundler tooling for main-entry users. Done means a main-only install no longer brings in @sentry/bundler-plugins or its transitive dependencies, while optional entry points and peer-dependency warnings remain correct.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Node.js

@sentry/[email protected] 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?

Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 8h
PRs com merge (30d)
744

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.