Registry / devops / esbuild-freebsd-64

esbuild-freebsd-64

JSON →
library0.15.18jsnpmunverified

esbuild-freebsd-64 is a specific platform binary package providing the core native module for esbuild on FreeBSD 64-bit systems. esbuild is a high-performance JavaScript bundler and minifier known for its exceptional speed. It processes JavaScript, TypeScript, JSX, TSX, CSS, and JSON, offering features like tree-shaking, minification, source map generation, and a powerful transformation API. While the main esbuild project is actively developed, with versions reaching up to `v0.28.x` (as of April 2026), this specific binary package (`esbuild-freebsd-64`) is at version `0.15.18`, corresponding to older `esbuild` releases. Users typically interact with the main `esbuild` package, which then selects and leverages the appropriate platform-specific binary, such as this one, as an optional dependency. Its primary differentiator is its build speed, making it suitable for development workflows where rapid rebuilds are critical, often outperforming other bundlers like Webpack or Rollup.

devops
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The 'esbuild-freebsd-64' package provides the native binary, but the public API is imported from the main 'esbuild' package. ESM is standard; CJS is also supported.

import { build } from 'esbuild'

For transforming individual code strings or buffers, use the named `transform` export. Avoid deep imports from `lib/` as they are internal and subject to change.

import { transform } from 'esbuild'

When importing types in TypeScript, use `import type` for clarity and to prevent runtime imports. This type is used with `formatMessages`.

import type { FormatMessagesOptions } from 'esbuild'

This quickstart demonstrates how to use the esbuild `build` API to bundle a TypeScript file into an optimized ES module for Node.js, including minification and source maps.

import { build } from 'esbuild'; import path from 'path'; import fs from 'fs/promises'; const entryPoint = './src/index.ts'; const outputDir = './dist'; async function buildProject() { try { await fs.mkdir(outputDir, { recursive: true }); await fs.writeFile(path.join(path.dirname(entryPoint), path.basename(entryPoint)), ` console.log('Hello from esbuild!'); export const foo = 'bar'; `); const result = await build({ entryPoints: [entryPoint], bundle: true, outdir: outputDir, platform: 'node', target: 'es2020', minify: true, sourcemap: true, logLevel: 'info', format: 'esm', }); if (result.errors.length > 0) { console.error('Build failed with errors:', result.errors); } else { console.log('Build successful! Output in:', outputDir); const outputFile = path.join(outputDir, 'index.js'); const content = await fs.readFile(outputFile, 'utf-8'); console.log('\n--- Output Content (truncated) ---\n', content.substring(0, 200), '...'); } } catch (e) { console.error('An unexpected error occurred during build:', e); } } buildProject();
Debug
Known footguns
breakingThe default value for the `target` option changed from `es2015` to `es2016` in esbuild v0.15.0. This might affect generated code compatibility for older environments if you rely on the default.
breakingThe default value for the `charset` option changed from `ascii` to `utf8` in esbuild v0.15.0. This can alter how non-ASCII characters are handled in output files, potentially causing issues with older systems or specific encoding expectations.
breakingThe `jsxFactory` and `jsxFragment` options now correctly accept empty string values starting from esbuild v0.15.0. If you previously relied on their incorrect handling of empty strings, your build behavior may change.
gotchaThe `esbuild-freebsd-64` package is a specific native binary for `esbuild`. While `esbuild` itself is at `v0.28.x`, this binary package is fixed at `v0.15.18`. For new projects, install the main `esbuild` package, which will automatically select the correct, up-to-date binary for your platform. Manually installing this specific binary is generally only needed for explicit version control or debugging platform-specific issues.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources