internal: make @import("bun") work in zig (#19096)

This commit is contained in:
chloe caruso
2025-04-17 12:32:47 -07:00
committed by GitHub
parent ef17164c69
commit 4ec410e0d7
542 changed files with 640 additions and 600 deletions

View File

@@ -1,7 +1,7 @@
const std = @import("std");
const path_handler = @import("../src/resolver/resolve_path.zig");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;

View File

@@ -98,7 +98,7 @@ chunks.push(`// Auto-generated file. Do not edit.
// This used to be a comptime block, but it made the build too slow.
// Compressing the completions list saves about 100 KB of binary size.
const std = @import("std");
const bun = @import("root").bun;
const bun = @import("bun");
const zstd = bun.zstd;
const Environment = bun.Environment;

View File

@@ -1,5 +1,5 @@
const std = @import("std");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;

View File

@@ -1,6 +1,6 @@
// most of this file is copy pasted from other files in misctools
const std = @import("std");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;

View File

@@ -1,7 +1,7 @@
const std = @import("std");
const path_handler = @import("../src/resolver/resolve_path.zig");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;

View File

@@ -1,7 +1,7 @@
const std = @import("std");
const path_handler = @import("../src/resolver/resolve_path.zig");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;

View File

@@ -1,7 +1,7 @@
const std = @import("std");
const path_handler = @import("../src/resolver/resolve_path.zig");
const bun = @import("root").bun;
const bun = @import("bun");
const string = bun.string;
const Output = bun.Output;
const Global = bun.Global;