From 5ddea5ce1d9451ba96c8b7b4edf607bf057ad4f4 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 29 Jul 2025 21:29:03 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/js_parser.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js_parser.zig b/src/js_parser.zig index a8fa77b256..177dddfaca 100644 --- a/src/js_parser.zig +++ b/src/js_parser.zig @@ -23542,13 +23542,13 @@ fn NewParser_( .result => |path| path, }) |path| { const rel_path = if (strings.hasPrefix(path, source_dir)) path[source_dir.len + @intFromBool(path[source_dir.len] == '/') ..] else path; - + var path_buf: bun.PathBuffer = undefined; const slash_normalized = if (bun.Environment.isWindows) strings.normalizeSlashesOnly(&path_buf, rel_path, '/') else rel_path; - + const normalized = if (strings.hasPrefix(slash_normalized, "./")) p.allocator.dupe(u8, slash_normalized) catch unreachable else