Skip to content

Commit 8bc633b

Browse files
Add .node and .wasm to known binary file list (#17123)
Closes #17092 After a lot of spelunking we found one specific reason for the very slow builds in the repro from #17092: Turns our we are needlessly scanning the binary `.node` extension for class names 😬. This PR adds `.wasm` and `.node` to the list of known binary extensions. ## Test plan - Check out the repro from `#17092` - Delete the `.gitignore` file - Observe that builds are very slow (`527.79s`) - Add a _pnpm override_ to load local versions of Oxide - `pnpm build` now completes in ~50s
1 parent 5e2633b commit 8bc633b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- Fix `haml` pre-processing ([#17051](https://github.com/tailwindlabs/tailwindcss/pull/17051))
2323
- Ensure classes between `>` and `<` are properly extracted ([#17094](https://github.com/tailwindlabs/tailwindcss/pull/17094))
2424
- Treat starting single quote as verbatim text in Slim ([#17085](https://github.com/tailwindlabs/tailwindcss/pull/17085))
25+
- Ensure `.node` and `.wasm` files are not scanned for utilities ([#17123](https://github.com/tailwindlabs/tailwindcss/pull/17123))
2526

2627
## [4.0.12] - 2025-03-07
2728

crates/oxide/src/scanner/fixtures/binary-extensions.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
3g2
44
3gp
55
7z
6-
DS_Store
76
a
87
aac
98
adp
@@ -51,6 +50,7 @@ docx
5150
dot
5251
dotm
5352
dra
53+
DS_Store
5454
dsk
5555
dts
5656
dtshd
@@ -131,6 +131,7 @@ mpg
131131
mpga
132132
mxu
133133
nef
134+
node
134135
npx
135136
numbers
136137
nupkg
@@ -229,6 +230,7 @@ uvu
229230
viv
230231
vob
231232
war
233+
wasm
232234
wav
233235
wax
234236
wbmp

0 commit comments

Comments
 (0)