diff options
| author | 2021-06-19 18:23:15 -0700 | |
|---|---|---|
| committer | 2021-06-19 18:23:15 -0700 | |
| commit | fc1a37ccedba77ad8696f3580d4d1963b74ea980 (patch) | |
| tree | 4aa83f7cb27cf08ae6668287f75a7b6783e41f7a /src/http.zig | |
| parent | 7ed1b19d94f93e4313af65358f37e3337dd19f27 (diff) | |
| download | bun-fc1a37ccedba77ad8696f3580d4d1963b74ea980.tar.gz bun-fc1a37ccedba77ad8696f3580d4d1963b74ea980.tar.zst bun-fc1a37ccedba77ad8696f3580d4d1963b74ea980.zip | |
Show line counts for CSS
Former-commit-id: 3d9028f0eed792f088fc04a878e436a36699fb82
Diffstat (limited to '')
| -rw-r--r-- | src/http.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http.zig b/src/http.zig index bd7b3477f..269274b56 100644 --- a/src/http.zig +++ b/src/http.zig @@ -533,7 +533,7 @@ pub const RequestContext = struct { this.printer.ctx.reset(); - const written = brk: { + const count = brk: { if (this.bundler.options.hot_module_reloading) { break :brk try CSSBundlerHMR.bundle( file_path_str, @@ -570,13 +570,13 @@ pub const RequestContext = struct { .from_timestamp = from_timestamp, .loader = .css, .module_path = this.bundler.fs.relativeTo(file_path_str), - .blob_length = @truncate(u32, written), + .blob_length = @truncate(u32, count.written), // .log = std.mem.zeroes(Api.Log), }, }, .id = id, .bytes = this.printer.ctx.written, - .approximate_newline_count = 0, + .approximate_newline_count = count.approximate_newline_count, // .approximate_newline_count = parse_result.ast.approximate_newline_count, .timestamp = WebsocketHandler.toTimestamp(this.timer.read()), }; |
