alright basic stuff works now. still bugs with JS parser

Former-commit-id: a1dd2a2a32
This commit is contained in:
Jarred Sumner
2021-06-11 10:53:55 -07:00
parent d2e1c7955b
commit dc3309d130
11 changed files with 434 additions and 173 deletions

View File

@@ -317,6 +317,10 @@ pub const NodeModuleBundle = struct {
Output.prettyln(indent ++ "<b>{d:6} packages", .{this.bundle.packages.len});
}
pub fn codeStartOffset(this: *const NodeModuleBundle) u32 {
return @intCast(u32, jsbundle_prefix.len);
}
pub fn printSummaryFromDisk(
comptime StreamType: type,
input: StreamType,