diff options
author | 2021-05-12 20:33:58 -0700 | |
---|---|---|
committer | 2021-05-12 20:33:58 -0700 | |
commit | f12ed9904b03e11f755dce7b614925ea087f40da (patch) | |
tree | cfbbcab5ee4931d67b8e15d8175291675019ab92 /src/resolver/tsconfig_json.zig | |
parent | 1010bae1a350d12f7db49b8ca7f94aa748790b77 (diff) | |
download | bun-f12ed9904b03e11f755dce7b614925ea087f40da.tar.gz bun-f12ed9904b03e11f755dce7b614925ea087f40da.tar.zst bun-f12ed9904b03e11f755dce7b614925ea087f40da.zip |
okay I think that's most of resolving packages/imports algorithm!!!
Former-commit-id: 80037859ec5236e13314a336e28d5f46a96c3300
Diffstat (limited to 'src/resolver/tsconfig_json.zig')
-rw-r--r-- | src/resolver/tsconfig_json.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolver/tsconfig_json.zig b/src/resolver/tsconfig_json.zig index 6c7992833..52469d6bf 100644 --- a/src/resolver/tsconfig_json.zig +++ b/src/resolver/tsconfig_json.zig @@ -7,7 +7,10 @@ const js_ast = @import("../js_ast.zig"); const js_lexer = @import("../js_lexer.zig"); const alloc = @import("../alloc.zig"); -const PathsMap = std.StringHashMap([]string); +// Heuristic: you probably don't have 100 of these +// Probably like 5-10 +// Array iteration is faster and deterministically ordered in that case. +const PathsMap = std.StringArrayHashMap([]string); pub const TSConfigJSON = struct { abs_path: string, |