webpack / webpack-sources

Source code handling classes for webpack
MIT License
262 stars 71 forks source link

handle invalid mappings #127

Closed sokra closed 3 years ago

sokra commented 3 years ago

ignore invalid mappings when reading a source map

avoid generating invalid mappings when source maps contains mapping for the final position

codecov[bot] commented 3 years ago

Codecov Report

Merging #127 (dfff046) into main (d103b21) will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
+ Coverage   92.50%   92.52%   +0.02%     
==========================================
  Files          21       21              
  Lines        1561     1579      +18     
  Branches      451      461      +10     
==========================================
+ Hits         1444     1461      +17     
- Misses        108      109       +1     
  Partials        9        9              
Flag Coverage Δ
integration 92.52% <100.00%> (+0.02%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/ConcatSource.js 92.57% <ø> (-0.09%) :arrow_down:
lib/PrefixSource.js 82.00% <100.00%> (+0.36%) :arrow_up:
lib/helpers/readMappings.js 98.11% <100.00%> (+2.19%) :arrow_up:
lib/helpers/streamChunksOfSourceMap.js 96.85% <100.00%> (-1.07%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d103b21...dfff046. Read the comment docs.