Registry / web-framework / esbuild-linux-64

esbuild-linux-64

JSON →
library0.15.18jsnpmunverified

This package, `esbuild-linux-64`, provides the native 64-bit Linux binary for esbuild, an extremely fast JavaScript and CSS bundler and minifier. Esbuild is renowned for its exceptional speed, often completing builds 10-100 times faster than alternatives like Webpack or Rollup, attributed to its implementation in Go and heavy use of parallelism. It supports modern JavaScript features, TypeScript, JSX, tree-shaking, and has a simple, intuitive API. While `esbuild-linux-64` itself is a low-level component, the overarching `esbuild` project (currently at v0.28.0 as of April 2026) maintains a very active release cadence, frequently publishing updates with new features, bug fixes, and performance improvements. It is widely adopted by tools like Vite, Angular (since v17), and Ruby on Rails (since v7) for its performance. The package's purpose is to be an automatically selected optional dependency of the main `esbuild` package, providing the correct native executable for Linux x64 environments.

web-frameworkdevopshttp-networking
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.

This package (`esbuild-linux-64`) is a native binary and is NOT directly imported into JavaScript/TypeScript code. Users interact with the high-level `esbuild` package, which orchestrates the use of the appropriate platform-specific binary at runtime. Do not attempt to import from `esbuild-linux-64` directly.

import { build } from 'esbuild'

The `context` API is used for incremental builds and watch mode. All programmatic interactions with esbuild, including context creation, are done through the main `esbuild` package. Avoid CommonJS `require` if targeting ESM or using modern Node.js environments.

import { context } from 'esbuild'

The `serve` API provides a development server. As with other esbuild APIs, it is exposed by the main `esbuild` package, not the platform-specific binary package. Incorrectly trying to `require` the binary package directly will result in a 'Cannot find module' error.

import { serve } from 'esbuild'

Demonstrates a basic esbuild bundling and minification process using its JavaScript API, highlighting how the main `esbuild` package abstracts away platform-specific binaries like `esbuild-linux-64`.

import { build } from 'esbuild'; import { readFileSync, writeFileSync } from 'fs'; import { resolve } from 'path'; const entryPoint = resolve(__dirname, 'src/index.ts'); const outFile = resolve(__dirname, 'dist/bundle.js'); async function runBuild() { try { await build({ entryPoints: [entryPoint], bundle: true, minify: true, sourcemap: true, platform: 'node', target: 'es2020', outfile: outFile, logLevel: 'info', // This is crucial: esbuild-linux-64 is an *optional dependency* of 'esbuild'. // 'esbuild' detects your platform and uses the correct binary. // You typically just install 'esbuild' and it handles the rest. }); console.log(`Build successful: ${outFile}`); // Example of reading the output for verification const bundledCode = readFileSync(outFile, 'utf-8'); console.log(`Bundled code starts with:\n${bundledCode.substring(0, 100)}...`); } catch (error) { console.error('Build failed:', error); process.exit(1); } } // To make this runnable, ensure a dummy src/index.ts exists: // mkdir -p src && echo 'console.log("Hello from esbuild!");' > src/index.ts runBuild();
esbuild --version
Debug
Known footguns
breakingEsbuild releases, particularly major versions (e.g., v0.27.0), often contain backwards-incompatible changes. Users are strongly advised to pin exact versions or use patch-only version ranges (e.g., `^0.26.0`, `~0.26.0`) in `package.json` to prevent unexpected breakages during updates.
gotchaUsing platform-specific binaries like `esbuild-linux-64` in cross-platform environments (e.g., developing on macOS/Windows and deploying to a Linux Docker container) can lead to 'platform mismatch' errors.
breakingEsbuild's minimum Node.js version requirement for its JavaScript API increased from Node 12 to Node 18 (as of `0.23.0` in 2024). Running esbuild with older Node.js versions will result in incompatibilities.
gotchaMixing CommonJS (CJS) and ES Modules (ESM) in a Node.js project bundled with esbuild can lead to interoperability issues, especially with dynamic imports or complex `exports` maps in `package.json`.
breakingAs of v0.27.0, esbuild's binary loader uses `Uint8Array.fromBase64` if available, and specific Go compiler updates (e.g., Go 1.26 in `v0.28.0`) have raised minimum operating system requirements for esbuild binaries. For Linux, a kernel version of 3.2 or later is now required.
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
13 hits · last 30 days
ahrefsbot
4
gptbot
3
oai-searchbot
3
script
1
googlebot
1
chatgpt-user
1
Resources