Integrate CSS with bundler (#14281)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Co-authored-by: Zack Radisic <zackradisic@Mac.attlocal.net>
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com>
Co-authored-by: Zack Radisic <zackradisic@Zacks-MBP.attlocal.net>
This commit is contained in:
Zack Radisic
2024-10-04 20:23:10 -07:00
committed by GitHub
parent 3ab3dec34d
commit a01f9d8e1b
49 changed files with 3803 additions and 1455 deletions

View File

@@ -113,7 +113,7 @@ pub const BasicParseErrorKind = union(enum) {
_ = opts; // autofix
return switch (this.*) {
.unexpected_token => |token| {
try writer.print("unexpected token: {any}", .{token});
try writer.print("unexpected token: {}", .{token});
},
.end_of_input => {
try writer.print("unexpected end of input", .{});
@@ -157,6 +157,7 @@ pub const PrinterErrorKind = union(enum) {
invalid_composes_selector,
/// The CSS modules pattern must end with `[local]` for use in CSS grid.
invalid_css_modules_pattern_in_grid,
no_import_records,
};
/// A parser error.
@@ -197,7 +198,7 @@ pub const ParserError = union(enum) {
pub fn format(this: @This(), comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) !void {
return switch (this) {
.at_rule_invalid => |name| writer.print("at_rule_invalid: {s}", .{name}),
.unexpected_token => |token| writer.print("unexpected_token: {s}", .{@tagName(token)}),
.unexpected_token => |token| writer.print("unexpected_token: {}", .{token}),
.selector_error => |err| writer.print("selector_error: {}", .{err}),
else => writer.print("{s}", .{@tagName(this)}),
};