5 Commits
Author SHA1 Message Date
Haïm DimerandGitHub 05a93532d1 Preserve the BOM when stringifying (#2119)
PostCSS aims for byte-to-byte equal output, but the stringifier dropped a
leading byte order mark: `parse('a{}').toString()` returned `a{}`. The
BOM is already detected (`Input#hasBOM`) but was never re-emitted, so the
`bom.css` round-trip test had to be skipped.

Emit the BOM in `Stringifier#root` when the source had one, and re-enable the
previously skipped test.
2026-07-28 11:38:17 +02:00
Andrey Sitnik 89b7f7ac78 Update dependencies and code style 2023-07-06 13:38:48 +02:00
Andrey Kim cd9ec4f200 Move from Jest to uvu 2021-11-15 11:25:34 +03:00
Andrey Sitnik 389b7b00a9 Export public classes from main entry 2020-07-12 16:31:09 -07:00
Andrey Sitnik aa4188ca99 Move stringify test to TS 2020-07-09 21:21:35 -07:00