NativeScript / NativeScript/nativescript-cli

option to set location for sourcemaps (for console logs)

オープン
#5,232 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

device logs feature
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

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 ?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず lib/services/log-source-map-service.ts の sourceMapConverter 呼び出し箇所を読み、console-log の sourcemap の位置がどのように解決されるかを追跡します。issue の convert-source-map への参照と、プロジェクトに既存する設定パスを確認します。プロジェクトレベルの sourcemap の位置で、ソース検索を壊すことなく、要求された Sentry の app:///bundle.js.map 形式をサポートできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。