Skip to content

Commit 3f97a32

Browse files
committed
fix #2356: download the FreeBSD binary for Deno
1 parent 5d7ac55 commit 3f97a32

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
let t=123;export{t as foo};
3030
```
3131

32+
* Attempt to have esbuild work with Deno on FreeBSD ([#2356](https://github.com/evanw/esbuild/issues/2356))
33+
34+
Deno doesn't support FreeBSD, but it's possible to build Deno for FreeBSD with some additional patches on top. This release of esbuild changes esbuild's Deno installer to download esbuild's FreeBSD binary in this situation. This configuration is unsupported although in theory everything should work.
35+
3236
## 0.14.47
3337

3438
* Make global names more compact when `||=` is available ([#2331](https://github.com/evanw/esbuild/issues/2331))

lib/deno/mod.ts

+4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,14 @@ async function install(): Promise<string> {
146146
'x86_64-pc-windows-msvc': 'esbuild-windows-64',
147147
}
148148
const knownUnixlikePackages: Record<string, string> = {
149+
// These are the only platforms that Deno supports
149150
'aarch64-apple-darwin': 'esbuild-darwin-arm64',
150151
'aarch64-unknown-linux-gnu': 'esbuild-linux-arm64',
151152
'x86_64-apple-darwin': 'esbuild-darwin-64',
152153
'x86_64-unknown-linux-gnu': 'esbuild-linux-64',
154+
155+
// These platforms are not supported by Deno
156+
'x86_64-unknown-freebsd': 'esbuild-freebsd-64',
153157
}
154158

155159
// Pick a package to install

0 commit comments

Comments
 (0)