esbuild Windows 32-bit binary

raw JSON →
0.0.2035 verified Fri May 01 auth: no javascript

This package provides the Windows 32-bit native binary for esbuild, a fast JavaScript bundler and minifier written in Go. The current stable version is v0.28.0 (released regularly), with active development and breaking changes in major versions. It uses optional dependencies per platform to avoid downloading unnecessary binaries, and is the platform-specific package for esbuild on Windows 32-bit. Unlike webpack or Rollup, esbuild focuses on speed and minimal configuration, supporting ESM, CJS, TypeScript, JSX, and CSS.

error Error: The package esbuild-windows-32-for-imba must be installed with the optional flag, or you need to install the esbuild package instead.
cause Directly depending on the platform-specific binary instead of the main esbuild package.
fix
Remove esbuild-windows-32-for-imba from dependencies and add 'esbuild' as a dependency.
error error: No matching middleware found: esbuild-windows-32-for-imba
cause npm resolver picking wrong platform package due to missing optional dependencies.
fix
Run 'npm install' and ensure you are on Windows 32-bit.
error Module not found: Can't resolve 'esbuild'
cause Missing the main esbuild package or incorrect import path.
fix
Install esbuild via 'npm install esbuild' and import from 'esbuild'.
breaking Major version bumps (e.g., 0.27.0) contain breaking changes. Pin exact version or use ^0.x.0 range to avoid.
fix Use exact version in package.json (e.g., "esbuild": "0.27.0") or caret range with major locked (^0.26.0).
deprecated In esbuild 0.26.0, trusted publishing was enabled. No functional changes, but older CI workflows may fail if they rely on publishing behavior.
fix Update CI to use trusted publishing or adjust if needed.
gotcha The esbuild-windows-32-for-imba package is a platform-specific binary. It will fail if installed on non-Windows 32-bit systems.
fix Install the main 'esbuild' package, which automatically selects the correct binary for your platform.
breaking From version 0.27.0 onwards, use `import esbuild from 'esbuild'` instead of `const esbuild = require('esbuild')` for ESM projects.
fix Switch to ESM imports or use `const esbuild = require('esbuild')` in CommonJS files.
deprecated The `target` option previously accepted 'esnext'; now it's recommended to use a specific ES version (e.g., 'es2022').
fix Set target to a concrete version like 'es2022'.
npm install esbuild-windows-32-for-imba
yarn add esbuild-windows-32-for-imba
pnpm add esbuild-windows-32-for-imba

Shows a minimal build configuration: entry point, bundling, output, platform, format, target, loader, define, minification, and sourcemaps.

import esbuild from 'esbuild';

await esbuild.build({
  entryPoints: ['app.ts'],
  bundle: true,
  outfile: 'out.js',
  platform: 'node',
  format: 'esm',
  target: 'es2022',
  loader: { '.ts': 'ts' },
  define: { 'process.env.NODE_ENV': '"production"' },
  minify: true,
  sourcemap: true,
});

console.log('Build complete.');