mozilla / mozilla/source-map

applySourceMap should be lossless

Open
#216 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat
Dominant language
JavaScript
Stars
3.7k
Forks
370
PR merge metrics
No merged PRs in 30d

Description

Using applySourceMap looses details when one of the sourcemaps has less details than the other one. This is the cause of problems when using gulp-uglify and gulp-concat together.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the applySourceMap implementation and its handling of source maps with different levels of detail. Reproduce the gulp-uglify and gulp-concat case from the linked issue, then define lossless output behavior and add a regression test covering the missing details.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.