This commit is contained in:
Zack Radisic
2024-12-16 19:40:53 -08:00
committed by GitHub
parent f276484f25
commit 3906d02e2c
21 changed files with 324 additions and 78 deletions

View File

@@ -47,7 +47,7 @@ pub const DeclarationBlock = struct {
var arraylist = ArrayList(u8){};
const w = arraylist.writer(bun.default_allocator);
defer arraylist.deinit(bun.default_allocator);
var printer = css.Printer(@TypeOf(w)).new(bun.default_allocator, std.ArrayList(u8).init(bun.default_allocator), w, .{}, null);
var printer = css.Printer(@TypeOf(w)).new(bun.default_allocator, std.ArrayList(u8).init(bun.default_allocator), w, css.PrinterOptions.default(), null);
defer printer.deinit();
this.self.toCss(@TypeOf(w), &printer) catch |e| return try writer.print("<error writing declaration block: {s}>\n", .{@errorName(e)});
try writer.writeAll(arraylist.items);