esbuild is an extremely fast JavaScript bundler and minifier, written in Go and compiled to native code. It is known for its high performance, often outperforming other bundlers by 10-100x, making it ideal for development workflows, build tools, and server-side bundling. The project generally has a rapid release cadence, with the main `esbuild` package currently stable around version `0.28.x` (as indicated by recent changelog entries, though the specific `esbuild-darwin-arm64` binary package provided here is version `0.15.18`). Key differentiators include its speed, low configuration overhead, and ability to handle JavaScript, TypeScript, JSX, TSX, CSS, and image assets. It's often used as a dependency in larger build systems like Vite or directly for CLI bundling tasks. This specific entry pertains to the `esbuild-darwin-arm64` package, which provides the macOS ARM 64-bit binary component for the `esbuild` ecosystem.
npm install esbuild-darwin-arm64Verified import paths — ran on the pinned version, not inferred.
Demonstrates a basic esbuild bundling operation for a TypeScript entry point, including minification, sourcemaps, targeting a specific platform, and a simple plugin example to log build events.
Update `package.json` to pin `esbuild` to an exact version or use a `~` range. Carefully review the changelog for affected versions and apply necessary code changes.
Prefer installing the main `esbuild` package, which intelligently selects and installs the correct `@esbuild/*` native binary package as a dependency. Avoid directly managing `esbuild-darwin-arm64` unless specifically required by your build setup.
Carefully configure the `target` option in `build` or `transform` options to precisely match your deployment environment's actual JavaScript capabilities (e.g., `es2015`, `esnext`, `node14`). For TypeScript, ensure class field lowering is appropriate for the target.
Thoroughly test your build process after any `esbuild` upgrade, especially if you rely on specific CSS output, complex async generators, or advanced import patterns. Review relevant changelog entries for affected versions to understand changes.
Ensure you have the main `esbuild` package installed correctly. If issues persist, try `npm rebuild esbuild`, `yarn cache clean && yarn install`, or manually install the correct platform package (e.g., `npm install esbuild-darwin-arm64`). Check if `npm_config_esbuild_binary_path` environment variable is misconfigured.
For ES Modules, use `import { build } from 'esbuild';`. For CommonJS, use `const esbuild = require('esbuild');` and then `esbuild.build(...)`. Ensure your `tsconfig.json` and `package.json` (`"type": "module"`) are correctly configured for your chosen module system.To enable ES module syntax, add `"type": "module"` to your `package.json`. Alternatively, rename your file to use a `.mjs` extension for ES modules or `.cjs` for CommonJS. If using Node.js, ensure your version supports ESM.
No dependency data recorded yet.