option to set location for sourcemaps (for console logs)

Offen
#5,232 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
javascript
Bereich
cli

Rechercherichtung

Beginne mit dem Lesen von lib/services/log-source-map-service.ts am Aufruf von sourceMapConverter und verfolge, wie sourcemap-Positionen für console-log aufgelöst werden. Prüfe den Verweis auf convert-source-map im Issue und die vorhandenen Konfigurationspfade des Projekts. Erledigt ist die Aufgabe, wenn eine projektweite sourcemap-Position das angeforderte Sentry-Format app:///bundle.js.map unterstützen kann, ohne die Quellensuche zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

device logs feature

Ok so to get sourcemaps fully working with Sentry, i have to modify quite a few things:

  • change the location of sourcemaps (like with hidden sourcemaps)
  • force sourceMappingURL to follow the format app:///bundle.js.map (so no mention to the relative path where source maps are located).

Consequently sourceMapConverter will fail here because this is the wrong location. I guess it tries to find the sourcemap in the same dir as the source itself. Or even what does it do with app:///

Do you think it would be possible to define somewhere (project wise) the location of the sourcemaps. May be using https://github.com/thlorenz/convert-source-map#frommapfilecommentcomment-mapfiledir ?

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NativeScript/nativescript-cli

Alle Issues in NativeScript/nativescript-cli

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.