Skip to content

.hdr files causes invalid codepoint 1234 #18733

@leon

Description

@leon

What version of Tailwind CSS are you using?

4.1.11

What build tool (or framework if it abstracts the build tool) are you using?

Angular 20.1, in NX 23.1 using Vite 6.3.5

What version of Node.js are you using?

22.16

What browser are you using?

Chrome

What operating system are you using?

MacOS

Reproduction URL

Download a hdr file such as https://polyhaven.com/a/brown_photostudio_01
then place it anywhere in your project

Describe your issue

This will cause tailwind to error out at startup with

RangeError: Invalid code point 2430513
app: at Function.fromCodePoint ()
app: at /Users/leon/.../node_modules/.pnpm/tailwindcss@4.1.11/node_modules/tailwindcss/dist/lib.js:1:4772

Solution

I think if we add it to the binary text file here it would solve it
https://github.com/tailwindlabs/tailwindcss/blob/main/crates/oxide/src/scanner/fixtures/binary-extensions.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions