esbuild Windows 64-bit Binary

0.15.18 · active · verified Tue Apr 21

esbuild-windows-64 is an optional platform-specific package providing the native 64-bit Windows executable for esbuild. esbuild itself is an extremely fast JavaScript and CSS bundler and minifier, written in Go to achieve superior performance compared to traditional JavaScript-based bundlers like Webpack or Rollup, often boasting 10-100x faster build times. It processes JavaScript, CSS, TypeScript, and JSX, offering features like tree shaking, minification, source maps, a local development server, and watch mode. The current stable version of esbuild is 0.28.0, with frequent patch releases and occasional minor versions introducing breaking changes. This package is typically installed automatically as a dependency of the main `esbuild` package and is not intended for direct user interaction or programmatic imports.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to programmatically use esbuild's `build` API to bundle and minify a TypeScript application targeting Node.js, including JSX transformation and sourcemap generation.

import * as esbuild from 'esbuild';
import path from 'path';
import { fileURLToPath } from 'url';

const __dirname = path.dirname(fileURLToPath(import.meta.url));

const entryPoint = path.join(__dirname, 'src', 'app.ts');
const outputDir = path.join(__dirname, 'dist');

const config = {
  entryPoints: [entryPoint],
  bundle: true,
  minify: true,
  sourcemap: true,
  outfile: path.join(outputDir, 'bundle.js'),
  platform: 'node', // or 'browser', 'neutral'
  format: 'esm', // or 'cjs', 'iife'
  target: 'es2020',
  logLevel: 'info',
  jsx: 'automatic',
  external: ['react', 'react-dom'] // Example: exclude external packages
};

async function buildProject() {
  try {
    await esbuild.build(config);
    console.log('Build successful!');
  } catch (error) {
    console.error('Build failed:', error);
    process.exit(1);
  }
}

buildProject();

view raw JSON →