Skip to content

Commit 7fff8ae

Browse files
committed
chore(Cargo.toml): reduce binary size by removing unicode from regex
This should be safe because because our usages of regexes do not have unicode patterns. This reduces binary size of `oxc-resolver` from 2.2M to 1.6M.
1 parent c76391c commit 7fff8ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ arca = "^0.7"
1212
byteorder = "1"
1313
clean-path = "0.2.1"
1414
concurrent_lru = "^0.2"
15-
fancy-regex = "^0.13.0"
15+
fancy-regex = { version = "^0.13.0", default-features = false, features = ["std"] }
1616
indexmap = { version = "2.7.1", features = ["serde"] }
1717
lazy_static = "1"
1818
miniz_oxide = "^0.7"
1919
mmap-rs = { version = "^0.6", optional = true }
2020
path-slash = "0.2.1"
2121
pathdiff = "^0.2"
2222
radix_trie = "0.2.1"
23-
regex = "1"
23+
regex = { version = "1", default-features = false, features = ["std"] }
2424
serde = { version = "1", features = ["derive"] }
2525
serde_json = "1"
2626
serde_with = { version = "3", features = ["indexmap_2"] }

0 commit comments

Comments
 (0)