diff options
author | 2023-05-11 19:31:55 -0700 | |
---|---|---|
committer | 2023-05-11 19:31:55 -0700 | |
commit | 136b50c74639cb1f583435a318d283028ee57dc5 (patch) | |
tree | 22024bcb412be102039e761c9e4eb57f574d5331 /src | |
parent | 5bb42c81e4e53873909899054f08310ec88433bf (diff) | |
download | bun-136b50c74639cb1f583435a318d283028ee57dc5.tar.gz bun-136b50c74639cb1f583435a318d283028ee57dc5.tar.zst bun-136b50c74639cb1f583435a318d283028ee57dc5.zip |
formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/bundler/bundle_v2.zig | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 65b183428..db1b09146 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -9145,30 +9145,32 @@ const LinkerContext = struct { .result => {}, } - output_files.appendAssumeCapacity(options.OutputFile.init( - options.OutputFile.Options{ - .output_path = bun.default_allocator.dupe(u8, chunk.final_rel_path) catch unreachable, - .input_path = input_path, - .input_loader = if (chunk.entry_point.is_entry_point) - c.parse_graph.input_files.items(.loader)[chunk.entry_point.source_index] - else - .js, - .hash = chunk.isolated_hash, - .output_kind = if (chunk.entry_point.is_entry_point) - c.graph.files.items(.entry_point_kind)[chunk.entry_point.source_index].OutputKind() - else - .chunk, - .loader = .js, - .source_map_index = if (source_map_output_file != null) - @truncate(u32, output_files.items.len + 1) - else - null, - .size = @truncate(u32, code_result.buffer.len), - .data = .{ - .saved = 0, + output_files.appendAssumeCapacity( + options.OutputFile.init( + options.OutputFile.Options{ + .output_path = bun.default_allocator.dupe(u8, chunk.final_rel_path) catch unreachable, + .input_path = input_path, + .input_loader = if (chunk.entry_point.is_entry_point) + c.parse_graph.input_files.items(.loader)[chunk.entry_point.source_index] + else + .js, + .hash = chunk.isolated_hash, + .output_kind = if (chunk.entry_point.is_entry_point) + c.graph.files.items(.entry_point_kind)[chunk.entry_point.source_index].OutputKind() + else + .chunk, + .loader = .js, + .source_map_index = if (source_map_output_file != null) + @truncate(u32, output_files.items.len + 1) + else + null, + .size = @truncate(u32, code_result.buffer.len), + .data = .{ + .saved = 0, + }, }, - }, - )); + ), + ); if (source_map_output_file) |sourcemap_file| { output_files.appendAssumeCapacity(sourcemap_file); |