diff options
author | 2021-06-04 16:06:38 -0700 | |
---|---|---|
committer | 2021-06-04 16:06:38 -0700 | |
commit | 65f4ea1e189aad169efc010052eadf378202e653 (patch) | |
tree | 4c7850c5101de23bb691c21e68769174fcc10db8 /src/resolver/tsconfig_json.zig | |
parent | 3d827342a57f424add2e62bfe5243fadbaa92600 (diff) | |
download | bun-65f4ea1e189aad169efc010052eadf378202e653.tar.gz bun-65f4ea1e189aad169efc010052eadf378202e653.tar.zst bun-65f4ea1e189aad169efc010052eadf378202e653.zip |
Generate differnet versions of Bundler, Resolver, and Caches at comptime based on whether we're serving over HTTP
Former-commit-id: e1a88527060e187ab21ca8890ea9bce2b999885a
Diffstat (limited to 'src/resolver/tsconfig_json.zig')
-rw-r--r-- | src/resolver/tsconfig_json.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolver/tsconfig_json.zig b/src/resolver/tsconfig_json.zig index 7b6977bba..8b380d89f 100644 --- a/src/resolver/tsconfig_json.zig +++ b/src/resolver/tsconfig_json.zig @@ -60,7 +60,8 @@ pub const TSConfigJSON = struct { allocator: *std.mem.Allocator, log: *logger.Log, source: logger.Source, - json_cache: *cache.Cache.Json, + comptime JSONCache: type, + json_cache: *JSONCache, ) anyerror!?*TSConfigJSON { // Unfortunately "tsconfig.json" isn't actually JSON. It's some other // format that appears to be defined by the implementation details of the |