diff options
author | 2021-05-29 13:33:48 -0700 | |
---|---|---|
committer | 2021-05-29 13:33:48 -0700 | |
commit | 3436ee9deddf21594a0b4fb3640a7596ea078093 (patch) | |
tree | c053cad5df831b5c376f404879c28e6e69d6cc7e /src/resolver/resolver.zig | |
parent | 923e2c5c5d43adce832c8eb4999a8070dbd8cced (diff) | |
download | bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.gz bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.zst bun-3436ee9deddf21594a0b4fb3640a7596ea078093.zip |
microp
Former-commit-id: b876a8d4800779c6728a61ec51cd168d7307bc9d
Diffstat (limited to 'src/resolver/resolver.zig')
-rw-r--r-- | src/resolver/resolver.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig index 929fdb27c..15d411596 100644 --- a/src/resolver/resolver.zig +++ b/src/resolver/resolver.zig @@ -1635,7 +1635,7 @@ pub const Resolver = struct { var base = std.fs.path.basename(path); // if (entries != null) { if (!strings.eqlComptime(base, "node_modules")) { - if (entries.get("node_modules")) |entry| { + if (entries.getComptimeQuery("node_modules")) |entry| { // the catch might be wrong! info.has_node_modules = (entry.entry.kind(rfs)) == .dir; } @@ -1675,7 +1675,7 @@ pub const Resolver = struct { } // Record if this directory has a package.json file - if (entries.get("package.json")) |lookup| { + if (entries.getComptimeQuery("package.json")) |lookup| { const entry = lookup.entry; if (entry.kind(rfs) == .file) { info.package_json = r.parsePackageJSON(path, if (FeatureFlags.store_file_descriptors) fd else 0) catch null; @@ -1698,7 +1698,7 @@ pub const Resolver = struct { { var tsconfig_path: ?string = null; if (r.opts.tsconfig_override == null) { - if (entries.get("tsconfig.json")) |lookup| { + if (entries.getComptimeQuery("tsconfig.json")) |lookup| { const entry = lookup.entry; if (entry.kind(rfs) == .file) { const parts = [_]string{ path, "tsconfig.json" }; @@ -1707,7 +1707,7 @@ pub const Resolver = struct { } } if (tsconfig_path == null) { - if (entries.get("jsconfig.json")) |lookup| { + if (entries.getComptimeQuery("jsconfig.json")) |lookup| { const entry = lookup.entry; if (entry.kind(rfs) == .file) { const parts = [_]string{ path, "jsconfig.json" }; |