File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
haul-ram-bundle-webpack-plugin/src Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 2323 "source-map" : " ^0.7.3" ,
2424 "source-map-explorer" : " ^3.2.2" ,
2525 "yargs" : " ^15.1.0"
26- },
27- "devDependencies" : {
28- "@types/btoa" : " ^1.2.3" ,
29- "@types/chai" : " ^4.2.7" ,
30- "@types/chai-as-promised" : " ^7.1.2" ,
31- "@types/concat-stream" : " ^1.6.0" ,
32- "@types/convert-source-map" : " ^1.5.1" ,
33- "@types/cross-spawn" : " ^6.0.1" ,
34- "@types/ejs" : " ^3.0.0" ,
35- "@types/escape-html" : " 0.0.20" ,
36- "@types/glob" : " ^7.1.1" ,
37- "@types/lodash" : " ^4.14.149" ,
38- "@types/node" : " ^13.x" ,
39- "@types/rimraf" : " ^2.0.3" ,
40- "@types/temp" : " ^0.8.34" ,
41- "@types/yargs" : " ^15.0.0"
4226 }
4327}
Original file line number Diff line number Diff line change @@ -64,16 +64,14 @@ export default class FileRamBundle {
6464 map : Object ;
6565 } > ,
6666 } ;
67- let lineOffset = countLines ( this . bootstrap ) ;
68- this . modules . forEach ( sourceModule => {
67+ this . modules . forEach ( ( sourceModule , index ) => {
6968 indexMap . sections . push ( {
7069 offset : {
71- line : lineOffset ,
70+ line : index ,
7271 column : 0 ,
7372 } ,
7473 map : sourceModule . map ,
7574 } ) ;
76- lineOffset += countLines ( sourceModule . source ) ;
7775 } ) ;
7876
7977 compilation . assets [ sourceMapFilename ] = new RawSource (
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export default class IndexRamBundle {
9999 this . rawModules . forEach ( ( sourceModule , index ) => {
100100 indexMap . sections . push ( {
101101 offset : {
102- line : index + 1 , // line is 1-based
102+ line : index ,
103103 column : 0 ,
104104 } ,
105105 map : sourceModule . map ,
You can’t perform that action at this time.
0 commit comments