Nx plugin for building Node.js and browser applications using ESBuild. Current stable version is 0.5.0. This package integrates ESBuild into the Nx build system as an executor, providing faster builds compared to traditional bundlers. It supports TypeScript, JSX, CSS, and code splitting. Key differentiators: native integration with @nrwl/devkit, uses ESBuild for speed, and requires @swc/core for TypeScript compilation. Release cadence is irregular; maintained by the community. It is inspired by @wanews/nx-esbuild but offers a different API and configuration style.
npm install nx-plugin-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to programmatically use the EsbuildExecutor to bundle a Node.js application.
Update to 0.5.0 and provide workspaceRoot in the executor context.
Use default import as a function, not constructor.
Do not remove @swc/core until officially announced.
Add these as devDependencies in your project.
Check SWC compatibility for your TypeScript config (e.g., decorators, experimental features).
Run 'npm install @nrwl/devkit @nrwl/workspace'.
Use ES module import (import { EsbuildExecutor } from 'nx-plugin-esbuild'). For CJS, use dynamic import: const { EsbuildExecutor } = await import('nx-plugin-esbuild').Provide an object with workspaceRoot and other context properties: { projectName, root, workspaceRoot }.