esbuild Windows 64-bit binary
raw JSON → 0.0.2035 verified Fri May 01 auth: no javascript
The Windows 64-bit native binary for esbuild, a fast JavaScript bundler and minifier. This package is part of esbuild's platform-specific distribution (version 0.27.x series, latest v0.28.0). It is installed automatically by the main `esbuild` package when running on Windows x64. Key differentiators: written in Go for extreme speed (10-100x faster than webpack/rollup), built-in bundling, minification, TypeScript/JSX transpilation, and CSS bundling. No dependencies required; the main `esbuild` package uses this as an optional dependency.
Common errors
error Module not found: Can't resolve 'esbuild-windows-64' ↓
cause Importing the platform-specific package directly instead of the main 'esbuild' package.
fix
Change import to 'esbuild'.
error The platform "linux" is incompatible with this module. ↓
cause Trying to install this package on a non-Windows system.
fix
Remove this package and rely on the main 'esbuild' package, which will install the correct binary for your platform.
error error: No matching export in "node_modules/esbuild-windows-64/package.json" for import "default" ↓
cause Attempting to import from this package using ES modules; it does not export the bundler API.
fix
Import from 'esbuild' instead.
Warnings
gotcha Do NOT import from this package directly. ↓
fix Import from the main 'esbuild' package instead.
breaking esbuild v0.27.0 introduced breaking changes. Pin exact version or use range ^0.26.0 to avoid automatic major upgrades. ↓
fix Use strict version pinning in package.json: "esbuild": "0.27.0"
gotcha This package is only for Windows x64. It will fail to install on other platforms. ↓
fix Ensure you are on Windows x64 or use the main 'esbuild' package which handles platform detection.
Install
npm install esbuild-windows-64-for-imba yarn add esbuild-windows-64-for-imba pnpm add esbuild-windows-64-for-imba Imports
- esbuild wrong
const esbuild = require('esbuild-windows-64')correctimport { build } from 'esbuild' - build wrong
import { build } from 'esbuild-windows-64'correctimport { build } from 'esbuild' - transform wrong
const { transform } = require('esbuild-windows-64')correctimport { transform } from 'esbuild'
Quickstart
import { build } from 'esbuild';
await build({
entryPoints: ['app.js'],
bundle: true,
outfile: 'out.js',
});
console.log('Bundled successfully!');