diff options
author | 2021-08-26 21:43:42 -0700 | |
---|---|---|
committer | 2021-08-26 21:43:42 -0700 | |
commit | 92229ac0f69b61ba008f222d9ac9728bbf03ada9 (patch) | |
tree | ba9727d39a6d7d2c472526f708166a9cd9c64751 /src/api/schema.zig | |
parent | 3a34f2e952869e7c05f2d129cd3c24101a46d814 (diff) | |
download | bun-92229ac0f69b61ba008f222d9ac9728bbf03ada9.tar.gz bun-92229ac0f69b61ba008f222d9ac9728bbf03ada9.tar.zst bun-92229ac0f69b61ba008f222d9ac9728bbf03ada9.zip |
Fix unbundled imports
Former-commit-id: f221da115c1afcd136648c9683d8e9907005a128
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r-- | src/api/schema.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig index 6afbc02de..3e542b035 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -598,14 +598,14 @@ pub const JavascriptBundleContainer = struct { /// bundle_format_version bundle_format_version: ?u32 = null, -/// bundle -bundle: ?JavascriptBundle = null, +/// routes +routes: ?LoadedRouteConfig = null, /// framework framework: ?LoadedFramework = null, -/// routes -routes: ?LoadedRouteConfig = null, +/// bundle +bundle: ?JavascriptBundle = null, /// code_length code_length: ?u32 = null, @@ -622,13 +622,13 @@ pub fn decode(reader: anytype) anyerror!JavascriptBundleContainer { this.bundle_format_version = try reader.readValue(u32); }, 2 => { - this.bundle = try reader.readValue(JavascriptBundle); + this.routes = try reader.readValue(LoadedRouteConfig); }, 3 => { this.framework = try reader.readValue(LoadedFramework); }, 4 => { - this.routes = try reader.readValue(LoadedRouteConfig); + this.bundle = try reader.readValue(JavascriptBundle); }, 5 => { this.code_length = try reader.readValue(u32); @@ -646,17 +646,17 @@ if (this.bundle_format_version) |bundle_format_version| { try writer.writeFieldID(1); try writer.writeInt(bundle_format_version); } -if (this.bundle) |bundle| { +if (this.routes) |routes| { try writer.writeFieldID(2); - try writer.writeValue(bundle); + try writer.writeValue(routes); } if (this.framework) |framework| { try writer.writeFieldID(3); try writer.writeValue(framework); } -if (this.routes) |routes| { +if (this.bundle) |bundle| { try writer.writeFieldID(4); - try writer.writeValue(routes); + try writer.writeValue(bundle); } if (this.code_length) |code_length| { try writer.writeFieldID(5); |