Registry / devops / esbuild-android-64-for-imba

esbuild-android-64-for-imba

JSON →
library0.0.2035jsnpmunverified

A WebAssembly shim for esbuild, an extremely fast JavaScript bundler and minifier, targeting Android x64 platforms. This package specifically supports the Imba programming language runtime on Android x64 (Node.js >=12). esbuild is known for its unparalleled speed (10-100x faster than traditional bundlers like Webpack) and native ES module support, with a focus on simplicity and zero configuration. The latest stable version is v0.28.0, released in late 2024, with frequent updates (multiple versions per month) focusing on bug fixes and standard compliance. Key differentiators: written in Go, native parallelism, WebAssembly fallback for non-standard platforms, and integrated TypeScript/JSX support without additional plugins.

npm install esbuild-android-64-for-imba
INSTALL
IMPORT
SIG · ESBUILD-ANDROID-64
E
esbuild-android-64-for-imba
devopsjavascriptv0.0.2035
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

build
import { build } from 'esbuild'
const build = require('esbuild').build
Esm only since v0.17. For .js files, use .mjs extension or set type:module in package.json.
buildSync
import { buildSync } from 'esbuild'
const buildSync = require('esbuild/buildSync')
Synchronous API callable from top-level or async context.
transform
import { transform } from 'esbuild'
import esbuild from 'esbuild'; esbuild.transform(...)
transform function is exported as named export, not default. Available since v0.6.

A minimal ES module build example using esbuild's async API to bundle a Node.js entry point with target ES2020.

import { build } from 'esbuild'; try { await build({ entryPoints: ['in.js'], bundle: true, outfile: 'out.js', platform: 'node', target: ['es2020'], define: { 'process.env.NODE_ENV': '"production"' }, }); console.log('Bundle built successfully'); } catch (err) { console.error('Build failed:', err); }
esbuild --version
Debug
Known issues
breakingBreaking changes in v0.27.0: esbuild now uses Uint8Array.fromBase64 if available, and drops support for some older environments.
fix
Pin esbuild to a specific major version or use semver range ^0.26.0.
affects: >=0.27.0
gotchaThis shim is WebAssembly-based, which may have reduced performance compared to native builds. Always prefer the native platform package (e.g., esbuild-darwin-arm64) for production builds on supported platforms.
fix
Use native packages like esbuild-linux-64 on Linux x64. See docs for platform-specific install.
affects: >=0.0.0
deprecatedThe 'watch' option in build() is deprecated since v0.15.0. Use the 'watch' API function instead.
fix
Use esbuild's watch API: const ctx = await context({...}); ctx.watch();
affects: >=0.15.0
gotchaEsm only: Starting from version 0.17, esbuild is ESM-only. Using require() will throw an error.
fix
Use import syntax or set {type: 'module'} in package.json. For CommonJS files, use dynamic import() or convert to .mjs.
affects: >=0.17.0
breakingNode.js version requirement: esbuild 0.26.0+ requires Node.js >=12 (some older versions may break). This shim also requires Node >=12.
fix
Upgrade Node.js to at least version 12. Check Node.js compatibility matrix.
affects: >=0.26.0
gotchaCSS bundling: esbuild does not support CSS preprocessors (Sass, Less) natively. Use plugins or pre-compile CSS.
fix
Pre-process CSS with tools like sass before feeding to esbuild, or use esbuild-sass-plugin.
affects: >=0.0.0
Errors
Common errors & fixes
Error: esbuild: Failed to install correctly. Run again with --log-level=verbose to see errors.
Installation failed due to missing or corrupted binary/shims for the current platform.
fix
Ensure Node.js version >=12 and architecture is x64 Android. Try reinstalling package: npm install esbuild-android-64-for-imba. If using Docker, check platform compatibility.
SyntaxError: Cannot use import statement outside a module
Using ESM syntax in a CommonJS (.js) file without setting type: module.
fix
Rename file to .mjs or add { "type": "module" } to package.json.
Error: Build failed with 1 error: error: Could not resolve 'fs' (use platform: 'node' or 'platform: 'neutral')
By default, esbuild assumes browser platform and does not bundle Node built-in modules.
fix
Set platform: 'node' in build options. Example: await build({ platform: 'node', ... }).
Error: The package "esbuild" could not be loaded. Try installing platform-specific package.
You attempted to require('esbuild') but the platform-specific binary/shim is missing.
fix
Install the correct package for your platform: e.g., npm install esbuild-linux-64 for Linux x64, or esbuild-android-64-for-imba for Android x64 with Imba.
Upgrade
Version history
0.0.2035latest on npm
Audit
Dependencies
esbuildrequiredThis package is a shim for esbuild and depends on the core esbuild logic.
Agent activity
4 hits · last 30 days
node
4
Resources
esbuild-android-64-for-imba — npm install esbuild-android-64-for-imba · libregistry