From 282fbd76cd0208354e2c3ccf589e9f2968bdcf09 Mon Sep 17 00:00:00 2001 From: snwy Date: Fri, 27 Sep 2024 20:16:18 -0700 Subject: [PATCH] Update src/bundler/bundle_v2.zig Co-authored-by: Jarred Sumner --- src/bundler/bundle_v2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 813b560c62..c5c8fcef9b 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -7623,7 +7623,7 @@ pub const LinkerContext = struct { }) catch bun.outOfMemory(); } - const source: *Logger.Source = &input_files[source_index]; + const source: *const Logger.Source = &input_files[source_index]; const imported_pretty_path = source.path.pretty; const text: string = if (strings.eql(imported_pretty_path, tla_pretty_path)) std.fmt.allocPrint(c.allocator, "This require call is not allowed because the imported file \"{s}\" contains a top-level await", .{imported_pretty_path}) catch bun.outOfMemory()