NativeScript / NativeScript/nativescript-cli
option to set location for sourcemaps (for console logs)
まだ誰も着手していません。
- 主要言語
- 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
sourceMappingURLto follow the formatapp:///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 ?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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