aboutsummaryrefslogtreecommitdiff
path: root/src/bundler/generate_node_modules_bundle.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundler/generate_node_modules_bundle.zig')
-rw-r--r--src/bundler/generate_node_modules_bundle.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bundler/generate_node_modules_bundle.zig b/src/bundler/generate_node_modules_bundle.zig
index 1b18bc7e4..149c647b8 100644
--- a/src/bundler/generate_node_modules_bundle.zig
+++ b/src/bundler/generate_node_modules_bundle.zig
@@ -684,11 +684,11 @@ pub fn generate(
fixed_buffer_writer.print(
\\if ('window' in globalThis) {{
\\ (function() {{
- \\ BUN_RUNTIME.__injectFastRefresh(${x}());
+ \\ BUN_RUNTIME.__injectFastRefresh(${any}());
\\ }})();
\\}}
,
- .{refresh_runtime_module_id},
+ .{bun.fmt.x(refresh_runtime_module_id)},
) catch unreachable;
try this.tmpfile.writeAll(fixed_buffer.buffer[0..fixed_buffer.pos]);
}
@@ -793,7 +793,7 @@ pub fn generate(
const etag_u64 = hasher.final();
// We store the etag as a ascii hex encoded u64
// This is so we can send the bytes directly in the HTTP server instead of formatting it as hex each time.
- javascript_bundle.etag = try std.fmt.allocPrint(allocator, "{x}", .{etag_u64});
+ javascript_bundle.etag = try std.fmt.allocPrint(allocator, "{any}", .{bun.fmt.x(etag_u64)});
javascript_bundle.generated_at = @truncate(u32, @intCast(u64, std.time.milliTimestamp()));
const basename = std.fs.path.basename(std.mem.span(destination));
@@ -803,10 +803,10 @@ pub fn generate(
else
try std.fmt.allocPrint(
this.allocator,
- "/{s}.{x}.bun",
+ "/{s}.{any}.bun",
.{
basename[0 .. basename.len - extname.len],
- etag_u64,
+ bun.fmt.x(etag_u64),
},
);