esbuild-android-64
raw JSON → 0.15.18 verified Mon Apr 27 auth: no javascript
A WebAssembly shim for esbuild targeting Android x64 platforms, version 0.15.18. This package is part of the esbuild ecosystem and is automatically installed when using esbuild on Android x64. It provides a WebAssembly build of esbuild for environments where native binaries are not available. The release cadence matches esbuild's main releases. Differentiators: platform-specific package for Android x64, enabling esbuild usage in Android environments such as Termux. No other package serves this specific platform.
Common errors
error Cannot find module 'esbuild-android-64' ↓
cause Manually trying to import esbuild-android-64 instead of esbuild.
fix
Use require('esbuild') or import from 'esbuild'.
error Module not found: Can't resolve 'esbuild-android-64' ↓
cause Using esbuild-android-64 in a browser or bundler without proper configuration.
fix
This package is not meant for browsers; use esbuild in a Node.js environment.
error esbuild-android-64: The platform "android" is incompatible with this module. ↓
cause Attempting to use the package on a non-Android platform.
fix
This package is only for Android x64. On other platforms, esbuild will install the correct package automatically.
Warnings
gotcha Do not install esbuild-android-64 manually; it will be installed automatically by esbuild. ↓
fix Uninstall esbuild-android-64 and install esbuild instead: npm uninstall esbuild-android-64 && npm install esbuild
deprecated Platform-specific esbuild packages (like esbuild-android-64) are deprecated in favor of the main 'esbuild' package using optional dependencies. ↓
fix Use the main 'esbuild' package. It will automatically install the correct platform binary.
breaking esbuild v0.15.0 changed the way platform-specific packages are resolved. Ensure you are using a compatible Node version (>=12). ↓
fix Update Node.js to >=12 and install esbuild@latest.
Install
npm install esbuild-android-64 yarn add esbuild-android-64 pnpm add esbuild-android-64 Imports
- esbuild wrong
const esbuild = require('esbuild-android-64')correctconst esbuild = require('esbuild') - transform wrong
import { transform } from 'esbuild-android-64'correctimport { transform } from 'esbuild' - build wrong
const { build } = require('esbuild-android-64')correctconst { build } = require('esbuild')
Quickstart
// This package is not used directly. Install esbuild and it will automatically select the correct platform package.
// Install esbuild:
// npm install esbuild
// Example usage (in any Node.js environment, including Android x64):
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['app.js'],
bundle: true,
outfile: 'out.js',
}).catch(() => process.exit(1));