Introduce experimental support for on-demand bundling via HTML imports and Bun.serve() (#16395)

This commit is contained in:
Jarred Sumner
2025-01-15 01:00:23 -08:00
committed by GitHub
parent 6cb0d49afb
commit 522f2b91a0
25 changed files with 1735 additions and 769 deletions

View File

@@ -19,6 +19,10 @@ pub const MutableString = struct {
return MutableString.init(allocator, 2048);
}
pub fn clone(self: *MutableString) !MutableString {
return MutableString.initCopy(self.allocator, self.list.items);
}
pub const Writer = std.io.Writer(*@This(), OOM, MutableString.writeAll);
pub fn writer(self: *MutableString) Writer {
return Writer{