evanw / evanw/node-source-map-support

Issue with tooling that parses code looking for SourceMaps

オープン
#136 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.2k
フォーク
223
PR マージ指標
30日以内にマージされた PR はありません

説明

In `source-map-support.js` on line [113](https://github.com/evanw/node-source-map-support/blob/70c54a8ab65103f307558a901299b998d1bb45c7/source-map-support.js#L113), there is a comment that explains the regex. When we couple this with a tool that parses code for source maps, like source-map-loader in Webpack, this looks like a source-map URL and the tooling tries to load it.

While this could be considered a bug in the tooling, in this case source-map-loader bug, is it possible to remove this comment?

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

source-map-support.js の113行目を開き、正規表現を説明しているコメントを確認します。source-map-loader などの解析ツールが、そのコメントを source-map URL と誤認していることを確認します。そのコメントを削除し、ツールがそれを読み込もうとしなくなれば完了です。

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

評価

技術スタック
javascript
領域
tooling
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

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

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