Skip to content

Commit 5ac48e2

Browse files
committed
remove deps; adjust ram and file bundles
1 parent 459a21b commit 5ac48e2

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

packages/haul-explore/package.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,5 @@
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
}

packages/haul-ram-bundle-webpack-plugin/src/FileRamBundle.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

packages/haul-ram-bundle-webpack-plugin/src/IndexRamBundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)