mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
windows: random things (#9046)
* random things * fix reliability of loading napi stuff * fix posix build * a
This commit is contained in:
@@ -1709,15 +1709,19 @@ pub const VirtualMachine = struct {
|
||||
const buster_name = name: {
|
||||
if (std.fs.path.isAbsolute(normalized_specifier)) {
|
||||
if (std.fs.path.dirname(normalized_specifier)) |dir| {
|
||||
// With trailing slash
|
||||
break :name if (dir.len == 1) dir else normalized_specifier[0 .. dir.len + 1];
|
||||
// Normalized with trailing slash
|
||||
break :name bun.strings.normalizeSlashesOnly(
|
||||
&specifier_cache_resolver_buf,
|
||||
if (dir.len == 1) dir else normalized_specifier[0 .. dir.len + 1],
|
||||
'/',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
var parts = [_]string{
|
||||
source_to_use,
|
||||
normalized_specifier,
|
||||
"../",
|
||||
bun.pathLiteral("../"),
|
||||
};
|
||||
|
||||
break :name bun.path.joinAbsStringBufZTrailingSlash(
|
||||
|
||||
Reference in New Issue
Block a user