evanw / evanw/node-source-map-support
Issue with tooling that parses code looking for SourceMaps
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Open source-map-support.js at line 113 and inspect the comment describing the regex. Confirm that the comment is being mistaken for a source-map URL by parsing tooling such as source-map-loader. Done means removing that comment so the tooling no longer attempts to load it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100