{"id":25258,"library":"esbuild-android-64-for-imba","title":"esbuild-android-64-for-imba","description":"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.","status":"active","version":"0.0.2035","language":"javascript","source_language":"en","source_url":"https://github.com/evanw/esbuild","tags":["javascript"],"install":[{"cmd":"npm install esbuild-android-64-for-imba","lang":"bash","label":"npm"},{"cmd":"yarn add esbuild-android-64-for-imba","lang":"bash","label":"yarn"},{"cmd":"pnpm add esbuild-android-64-for-imba","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This package is a shim for esbuild and depends on the core esbuild logic.","package":"esbuild","optional":false}],"imports":[{"note":"Esm only since v0.17. For .js files, use .mjs extension or set type:module in package.json.","wrong":"const build = require('esbuild').build","symbol":"build","correct":"import { build } from 'esbuild'"},{"note":"Synchronous API callable from top-level or async context.","wrong":"const buildSync = require('esbuild/buildSync')","symbol":"buildSync","correct":"import { buildSync } from 'esbuild'"},{"note":"transform function is exported as named export, not default. Available since v0.6.","wrong":"import esbuild from 'esbuild'; esbuild.transform(...)","symbol":"transform","correct":"import { transform } from 'esbuild'"}],"quickstart":{"code":"import { build } from 'esbuild';\n\ntry {\n  await build({\n    entryPoints: ['in.js'],\n    bundle: true,\n    outfile: 'out.js',\n    platform: 'node',\n    target: ['es2020'],\n    define: { 'process.env.NODE_ENV': '\"production\"' },\n  });\n  console.log('Bundle built successfully');\n} catch (err) {\n  console.error('Build failed:', err);\n}","lang":"typescript","description":"A minimal ES module build example using esbuild's async API to bundle a Node.js entry point with target ES2020."},"warnings":[{"fix":"Pin esbuild to a specific major version or use semver range ^0.26.0.","message":"Breaking changes in v0.27.0: esbuild now uses Uint8Array.fromBase64 if available, and drops support for some older environments.","severity":"breaking","affected_versions":">=0.27.0"},{"fix":"Use native packages like esbuild-linux-64 on Linux x64. See docs for platform-specific install.","message":"This 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.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use esbuild's watch API: const ctx = await context({...}); ctx.watch();","message":"The 'watch' option in build() is deprecated since v0.15.0. Use the 'watch' API function instead.","severity":"deprecated","affected_versions":">=0.15.0"},{"fix":"Use import syntax or set {type: 'module'} in package.json. For CommonJS files, use dynamic import() or convert to .mjs.","message":"Esm only: Starting from version 0.17, esbuild is ESM-only. Using require() will throw an error.","severity":"gotcha","affected_versions":">=0.17.0"},{"fix":"Upgrade Node.js to at least version 12. Check Node.js compatibility matrix.","message":"Node.js version requirement: esbuild 0.26.0+ requires Node.js >=12 (some older versions may break). This shim also requires Node >=12.","severity":"breaking","affected_versions":">=0.26.0"},{"fix":"Pre-process CSS with tools like sass before feeding to esbuild, or use esbuild-sass-plugin.","message":"CSS bundling: esbuild does not support CSS preprocessors (Sass, Less) natively. Use plugins or pre-compile CSS.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"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.","cause":"Installation failed due to missing or corrupted binary/shims for the current platform.","error":"Error: esbuild: Failed to install correctly. Run again with --log-level=verbose to see errors."},{"fix":"Rename file to .mjs or add { \"type\": \"module\" } to package.json.","cause":"Using ESM syntax in a CommonJS (.js) file without setting type: module.","error":"SyntaxError: Cannot use import statement outside a module"},{"fix":"Set platform: 'node' in build options. Example: await build({ platform: 'node', ... }).","cause":"By default, esbuild assumes browser platform and does not bundle Node built-in modules.","error":"Error: Build failed with 1 error: error: Could not resolve 'fs' (use platform: 'node' or 'platform: 'neutral')"},{"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.","cause":"You attempted to require('esbuild') but the platform-specific binary/shim is missing.","error":"Error: The package \"esbuild\" could not be loaded. Try installing platform-specific package."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}