diff options
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r-- | src/api/schema.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig index 8c4f608d8..e34131dd2 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -1757,6 +1757,9 @@ no_summary: ?bool = null, /// disable_hmr disable_hmr: ?bool = null, +/// port +port: ?u16 = null, + pub fn decode(reader: anytype) anyerror!TransformOptions { var this = std.mem.zeroes(TransformOptions); @@ -1837,6 +1840,9 @@ pub fn decode(reader: anytype) anyerror!TransformOptions { 24 => { this.disable_hmr = try reader.readValue(bool); }, + 25 => { + this.port = try reader.readValue(u16); +}, else => { return error.InvalidMessage; }, @@ -1942,6 +1948,10 @@ if (this.disable_hmr) |disable_hmr| { try writer.writeFieldID(24); try writer.writeInt(@intCast(u8, @boolToInt(disable_hmr))); } +if (this.port) |port| { + try writer.writeFieldID(25); + try writer.writeInt(port); +} try writer.endMessage(); } |