{"id":26025,"library":"nx-ng-esbuild","title":"nx-ng-esbuild","description":"An Nx plugin that enables using ESBuild as the build system for Angular applications within an Nx workspace. Version 0.5.3 is the current stable release. The package provides generators to add ESBuild configuration to existing Angular apps or scaffold new apps with ESBuild support. It offers faster builds compared to the default Angular builder, though it currently produces larger bundle sizes and lacks features like type checking, file hashing, caching, and production readiness. It supports build, watch, and serve modes. The library is in early development and not recommended for production use.","status":"active","version":"0.5.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install nx-ng-esbuild","lang":"bash","label":"npm"},{"cmd":"yarn add nx-ng-esbuild","lang":"bash","label":"yarn"},{"cmd":"pnpm add nx-ng-esbuild","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; CommonJS require is not supported.","wrong":"const { createNodes } = require('nx-ng-esbuild')","symbol":"createNodes","correct":"import { createNodes } from 'nx-ng-esbuild'"},{"note":"Named export, not default.","wrong":"import NxAngularEsbuildPlugin from 'nx-ng-esbuild'","symbol":"NxAngularEsbuildPlugin","correct":"import { NxAngularEsbuildPlugin } from 'nx-ng-esbuild'"},{"note":"Executor is exported from a subpath.","wrong":"import { buildExecutor } from 'nx-ng-esbuild'","symbol":"executor (buildExecutor)","correct":"import { executor } from 'nx-ng-esbuild/build'"}],"quickstart":{"code":"// Install the plugin\n// npm install --save-dev nx-ng-esbuild\n\n// Generate a new Angular app with ESBuild support\n// nx g nx-ng-esbuild:app myApp\n\n// Build the app\n// nx run myApp:esbuild\n\n// Serve with watch mode on port 4201\n// nx run myApp:esbuild --serve=true --watch=true --port=4201\n\n// Add ESBuild configuration to an existing app\n// nx g nx-ng-esbuild:add-esbuild-config existingApp","lang":"typescript","description":"Commands to install the plugin, generate a new Angular app, build, and serve with custom port."},"warnings":[{"fix":"Pin to exact version and test upgrades carefully.","message":"Package is not production-ready and may have breaking changes between minor versions.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Add a separate type-checking step (e.g., tsc --noEmit).","message":"Does not run TypeScript type checking; type errors will not be caught during build.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Consider alternative builders if bundle size is critical.","message":"Larger bundle size compared to the default Angular builder.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Implement custom hashing or use Nx caching with proper inputs.","message":"Does not hash output files; caching and incremental builds not supported natively.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Do not rely on --dry-run; test changes on a separate branch.","message":"Dry run mode likely does not work for generators.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure package is installed: npm install --save-dev nx-ng-esbuild","cause":"Package not installed or TypeScript cannot resolve types.","error":"Cannot find module 'nx-ng-esbuild' or its corresponding type declarations."},{"fix":"Ensure 'serve' option is set to true when using 'port': nx run app:esbuild --serve=true --port=4201","cause":"Passing unsupported options to the executor, e.g., 'port' is only valid when 'serve=true'.","error":"Schema validation failed: Data path '' must NOT have additional properties (port)."},{"fix":"Provide a valid project name: nx g nx-ng-esbuild:add-esbuild-config myApp","cause":"Generator called without a valid project name.","error":"TypeError: Cannot read properties of undefined (reading 'project')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}