esbuild for Linux s390x

raw JSON →
0.15.18 verified Sat Apr 25 auth: no javascript

This is the Linux IBM Z 64-bit Big Endian binary for esbuild, a JavaScript bundler and minifier. It is a platform-specific package automatically installed when you install esbuild on a Linux s390x machine. The current stable version of esbuild is 0.28.0, with a rapid release cadence (multiple minor/patch versions per month). esbuild differentiates from other bundlers (like webpack or Rollup) by its extreme speed, written in Go, and zero configuration by default. This package is not meant to be directly installed by users; instead, the main esbuild package selects the appropriate platform binary.

error Error: Cannot find module 'esbuild-linux-s390x'
cause Installed esbuild-linux-s390x directly instead of main esbuild package.
fix
Install the main esbuild package: npm install esbuild
error error: No matching binary for platform linux-s390x (node v...)
cause esbuild platform detection failed, possibly due to a bug in older version.
fix
Update esbuild to latest version (>=0.15.0) which added s390x support.
error TypeError: esbuild.build is not a function
cause Attempting to import from esbuild-linux-s390x directly.
fix
Import from 'esbuild' instead.
gotcha Do NOT install esbuild-linux-s390x directly; it is automatically included by the main esbuild package.
fix Install esbuild instead: npm install esbuild
breaking esbuild v0.27.0 introduced breaking changes. Pin exact version to avoid surprises.
fix Use exact version in package.json: "esbuild": "0.27.0"
deprecated Some older APIs (like transformSync) are deprecated in favor of async equivalents.
fix Use async API: await esbuild.build() instead of esbuild.buildSync()
gotcha On non-s390x Linux, the main esbuild package will select a different binary (e.g., esbuild-linux-x64). The s390x binary is only used on IBM Z systems.
fix No action needed; it's handled automatically.
npm install esbuild-linux-s390x
yarn add esbuild-linux-s390x
pnpm add esbuild-linux-s390x

Shows how to bundle an entry point using the main esbuild package. The platform binary is selected automatically.

const esbuild = require('esbuild');

async function run() {
  const result = await esbuild.build({
    entryPoints: ['app.js'],
    bundle: true,
    outfile: 'out.js',
  });
  console.log('Build succeeded:', result);
}

run().catch(console.error);