Added FreeBSD case for esbuild package (#5498)

This commit is contained in:
Servus Altissimi authored and GitHub committed 2026-04-21 13:54:26 -07:00
1 parent 86d8e58443
commit 8f5c4d9f25
1 file changed
+5
+5
View File
@@ -151,6 +151,7 @@ impl Esbuild {
/// - darwin-arm64, darwin-x64
/// - linux-x64, linux-arm64
/// - win32-x64, win32-arm64
/// - freebsd-x64, freebsd-arm64
fn npm_platform_package() -> Option<&'static str> {
if cfg!(all(target_os = "macos", target_arch = "aarch64")) {
Some("darwin-arm64")
@@ -164,6 +165,10 @@ impl Esbuild {
Some("win32-x64")
} else if cfg!(all(target_os = "windows", target_arch = "aarch64")) {
Some("win32-arm64")
} else if cfg!(all(target_os = "freebsd", target_arch = "x86_64")) {
Some("freebsd-x64")
} else if cfg!(all(target_os = "freebsd", target_arch = "aarch64")) {
Some("freebsd-arm64")
} else {
None
}