aboutsummaryrefslogtreecommitdiff
path: root/src/resolver/resolver.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolver/resolver.zig')
-rw-r--r--src/resolver/resolver.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig
index f2a81a35a..5ba5eb74f 100644
--- a/src/resolver/resolver.zig
+++ b/src/resolver/resolver.zig
@@ -1373,6 +1373,14 @@ pub const Resolver = struct {
}
}
+ const dev = Output.scoped(.Resolver, false);
+
+ pub fn bustDirCache(r: *ThisResolver, path: string) void {
+ dev("Bust {s}", .{path});
+ r.fs.fs.bustEntriesCache(path);
+ r.dir_cache.remove(path);
+ }
+
threadlocal var esm_subpath_buf: [512]u8 = undefined;
threadlocal var esm_absolute_package_path: [bun.MAX_PATH_BYTES]u8 = undefined;
threadlocal var esm_absolute_package_path_joined: [bun.MAX_PATH_BYTES]u8 = undefined;