Source maps wizard leaves source maps public in Vite and webpack projects
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript, vite, webpack
- Ambito
- build-system, tooling
Direzione di ricerca
Start in src/sourcemaps/tools/vite.ts at enableSourcemapGeneration and src/sourcemaps/tools/webpack.ts at enableSourcemapsGeneration, then look for the codemod tests that cover those files and run them to see how option values are asserted. Compare against @sentry/bundler-plugins behaviour for unset build.sourcemap so the wizard stops writing true/source-map over unset, false or conditional values while keeping 'hidden' and hidden-* intact. Done means unset configs stay unset, the hidden-map-plus-upload-deletion path is proposed for explicitly disabled configs, and the codemod tests cover each case.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
@sentry/wizard master (b262ed0, 9.1.0 plus one commit), source maps integration, @sentry/bundler-plugins 11.17.0, Vite 7. Reproduced by running the wizard's codemods directly and building against a local fake Sentry server, not a full wizard run.
Steps to Reproduce
- Have a Vite project without
build.sourcemap. - Run
npx @sentry/wizard -i sourcemapsand choose Vite. - Build with an auth token so the source maps are uploaded.
- Look at
dist/assets.
Expected Result
Source maps are uploaded and not shipped. The plugin does this by default when build.sourcemap is unset: it enables hidden maps and deletes them after the upload.
Actual Result
The wizard sets build.sourcemap: true, which opts out of that default. After the upload, the .js.map file is still in the output and the bundle references it with a sourceMappingURL comment.
- Vite: an explicit
falseor a conditional value is also replaced withtrue.'hidden'is kept. - Webpack: the codemod adds
devtool: "source-map". From reading the code, values starting withhidden-stay hidden and all others becomesource-map. A webpack build was not run. - Neither flow writes an option to delete the maps.
See src/sourcemaps/tools/vite.ts (enableSourcemapGeneration) and src/sourcemaps/tools/webpack.ts (enableSourcemapsGeneration).
Suggested fix: leave unset configs alone. If source maps are explicitly disabled, ask before enabling hidden maps together with deletion after upload. This is the direction described in #1049.
- Lingua principale
- TypeScript
- Stelle
- 297
- Fork
- 88
- Merge medio
- 5h 29m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-wizard
-
bug Next.js
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-wizard#1397 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
getsentry/sentry-wizard#1396 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
React Router Framework
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
getsentry/sentry-wizard#1392 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
getsentry/sentry-wizard#1391 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Cocoa Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
getsentry/sentry-wizard#989 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-wizard
Issue simili
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Forse già presa @goranai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checksForse già presa @Raj1v l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
backnotprop/plannotator#4046 ·
I maintainer di solito rispondono entro 1 giorno
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
traPtitech/knoQ_R-UI#290 ·
I maintainer di solito rispondono entro 24 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
farion1231/cc-switch#9981 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
account bug course exam iris lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno