fix feedback

This commit is contained in:
Michael H
2025-02-01 17:43:34 +11:00
committed by GitHub
parent 6d9f0a9733
commit 4b3c50b504

View File

@@ -785,11 +785,7 @@ pub const StandaloneModuleGraph = struct {
const self_exe = openSelf() catch return null;
defer _ = Syscall.close(self_exe);
if (bun.getenvZ("BUN_SKIP_STANDALONE_MODULE_GRAPH")) |v| {
if (v.len > 0 and !(v.len == 1 and v[0] == '0')) {
return null;
}
}
if (bun.getRuntimeFeatureFlag("BUN_SKIP_STANDALONE_MODULE_GRAPH")) return null;
var trailer_bytes: [4096]u8 = undefined;
std.posix.lseek_END(self_exe.cast(), -4096) catch return null;