Registry / devops / esbuild-windows-arm64

esbuild-windows-arm64

JSON →
library0.15.18jsnpmunverified

esbuild-windows-arm64 provides the native binary for esbuild on Windows ARM 64-bit architectures. esbuild is a powerful and extremely fast JavaScript bundler and minifier, written in Go. It significantly speeds up development workflows by processing JavaScript (ESNext, JSX), TypeScript (TSX), CSS, JSON, and other asset types with high efficiency. Key features include tree-shaking, code splitting, source map generation, and the ability to target various JavaScript language versions and environments (e.g., browser, node). The esbuild project itself is in rapid, active development, with frequent releases (often multiple per month) introducing new features, optimizations, and bug fixes. While this specific package (esbuild-windows-arm64) is a platform-specific binary dependency, the main esbuild package is currently stable around version 0.28.x and is a highly recommended tool for optimizing build times in modern web development.

npm install esbuild-windows-arm64
INSTALL
IMPORT
SIG · ESBUILD-WINDOWS-AR
E
esbuild-windows-arm64
devopsjavascriptv0.15.18
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

build
import { build } from 'esbuild'
const build = require('esbuild').build;
The primary function for programmatic bundling. ESM is preferred for modern Node.js applications.
transform
import { transform } from 'esbuild'
const { transform } = require('esbuild');
Used for transforming a single string of code without bundling, useful for testing or specific code manipulation.
* as esbuild
import * as esbuild from 'esbuild'
import esbuild from 'esbuild';
esbuild does not export a default, so a namespace import or named imports are required for ESM. CommonJS uses `require('esbuild')` directly.

Demonstrates a basic esbuild setup for bundling a TypeScript project, including minification, source maps, environment variable definition, and a simple plugin.

import { build } from 'esbuild'; import path from 'path'; const entryPoint = 'src/index.ts'; const outputDirectory = 'dist'; const outFile = path.join(outputDirectory, 'bundle.js'); async function buildProject() { try { await build({ entryPoints: [entryPoint], bundle: true, outdir: outputDirectory, outfile: outFile, platform: 'node', // or 'browser' target: 'es2020', // Specify target JavaScript version minify: true, // Enable minification sourcemap: true, // Generate source maps define: { // Define global constants 'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.MY_API_KEY': JSON.stringify(process.env.MY_API_KEY ?? ''), }, logLevel: 'info', external: ['node-fetch'], // Example of an external dependency not to bundle plugins: [ { name: 'log-build', setup(build) { build.onStart(() => console.log('Starting esbuild build...')); build.onEnd(() => console.log('esbuild build finished successfully!')); }, }, ], }); console.log(`Build successful: ${outFile}`); } catch (error) { console.error('esbuild build failed:', error); process.exit(1); } } buildProject();
esbuild --version
Debug
Known issues
breakingVersion 0.27.0 of esbuild introduced deliberate backwards-incompatible changes. Unintended upgrades across minor or major versions can break builds.
fix
Pin the exact version of `esbuild` in `package.json` (e.g., `"esbuild": "0.27.0"`) or use a patch-only version range (`"esbuild": "~0.27.0"`) to prevent automatic minor/major updates. Always review the changelog before upgrading.
affects: >=0.27.0
gotcha`esbuild-windows-arm64` is a platform-specific binary dependency, not the main `esbuild` package. Directly managing its version can lead to mismatches with the core `esbuild` API and unexpected build issues.
fix
Always install the main `esbuild` package (`npm install esbuild`). It will automatically pull in the correct platform-specific binary for your environment. Avoid direct installation or version pinning of specific binary packages like this one unless you have a very specific advanced use case.
affects: >=0.15.18
breakingBefore version 0.27.7, esbuild incorrectly generated class fields for TypeScript parameter properties when targeting environments that do not support class fields, potentially leading to runtime errors.
fix
Upgrade your `esbuild` dependency to version `0.27.7` or newer to ensure correct lowering of TypeScript parameter properties based on the configured target environment.
affects: <0.27.7
gotchaVersions of esbuild prior to 0.27.4 contained regressions in parsing and printing specific CSS media query syntaxes (e.g., `<media-type> and <media-condition-without-or>`), which could result in incorrect or invalid CSS output.
fix
If you are encountering issues with CSS media queries, upgrade `esbuild` to version `0.27.4` or later to benefit from the fixes related to media query handling.
affects: <0.27.4
gotchaA bundler bug existed in versions before 0.27.1 affecting ES modules imported via `require` with top-level `var` declarations inside `if` statements, potentially causing incorrect variable scoping or runtime behavior.
fix
Upgrade to `esbuild >=0.27.1` to resolve the bundling issue related to `var` hoisting in specific CommonJS/ESM interop scenarios.
affects: <0.27.1
Errors
Common errors & fixes
Error: The esbuild binary for your current system is not available
The esbuild package could not find or correctly load the native binary for the detected operating system and architecture, or the binary is corrupted/missing.
fix
Run `npm rebuild esbuild` or `npm install --force esbuild` to re-download and re-install the native binary. Verify your Node.js version meets esbuild's requirements and your system architecture is supported.
Error: Cannot find module 'esbuild'
The 'esbuild' package is not installed or not resolvable from the current working directory, or `node_modules` is corrupted.
fix
Ensure 'esbuild' is listed in your `package.json` and run `npm install` (or `yarn add esbuild`). If it still fails, try clearing your npm cache with `npm cache clean --force` and then reinstalling.
esbuild: command not found
The esbuild Command Line Interface (CLI) executable is not in your system's PATH, or esbuild was installed locally and you are trying to run it globally without `npx`.
fix
If esbuild is installed locally, use `npx esbuild [args]` to run it. For global access, install it globally via `npm install -g esbuild` and ensure your system's PATH includes the npm global bin directory.
Syntax error with modern JavaScript/TypeScript features (e.g., 'Class private fields are not supported in esbuild by default')
esbuild's default target `ECMAScript` version is too old for the syntax used in your source code, or specific experimental features require explicit configuration.
fix
Configure the `target` option in your `esbuild` build process to a newer `ECMAScript` version (e.g., `target: 'esnext'` or `target: ['es2020', 'chrome80']`) to enable support for modern language features.
Upgrade
Version history
0.15.18latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
esbuild-windows-arm64 — npm install esbuild-windows-arm64 · libregistry