Parse CSS files with CRLF line endings (#13162)

* Parse CSS files with CRLF line endings

* Update changelog

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
This commit is contained in:
Adam Wathan 2024-03-08 15:28:58 -05:00 • committed by GitHub
parent 5d1e48de14
commit 277e2cdd4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 936 additions and 920 deletions

View file

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Don't error on `@apply` with leading/trailing whitespace ([#13144](https://github.com/tailwindlabs/tailwindcss/pull/13144))
- Correctly parse CSS using Windows line endings ([#13162](https://github.com/tailwindlabs/tailwindcss/pull/13162))
### Added

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,8 @@
import { comment, rule, type AstNode, type Comment, type Declaration, type Rule } from './ast'
export function parse(input: string) {
input = input.replaceAll('\r\n', '\n')
let ast: AstNode[] = []
let licenseComments: Comment[] = []