esbuild-linux-arm-for-imba

raw JSON →
0.0.2035 verified Fri May 01 auth: no javascript

This is the Linux ARM binary package for esbuild, a fast JavaScript bundler and minifier. Version 0.28.0 is the latest stable release. Esbuild is known for its speed, built-in TypeScript and JSX support, and tree-shaking. This package is automatically published alongside esbuild releases and should be installed automatically by npm when targeting Linux ARM. It is not intended to be directly depended upon; instead, add 'esbuild' to your dependencies. Notable changes include support for 'with { type: "text" }' imports in v0.28.0, breaking changes in v0.27.0 (e.g., Uint8Array.toBase64), and regular bug fixes and performance improvements. The package follows esbuild's release cadence with major versions every few months.

error The Linux ARM binary for esbuild is not available for this platform
cause esbuild-linux-arm-for-imba is a specific binary package that may not match your architecture.
fix
Install the correct platform package by adding "esbuild": "^0.28.0" to dependencies; npm will choose the right optional dependency.
error Error: Cannot find module 'esbuild'
cause Missing esbuild package; only the binary package was installed.
fix
Install the main esbuild package: npm install esbuild
error Module 'esbuild' has been externalized for browser compatibility and cannot be accessed in client code
cause Attempting to import esbuild in a browser environment; it's a Node.js API.
fix
Use esbuild only in Node.js scripts or bundlers, not in browser code.
breaking v0.27.0 uses Uint8Array.toBase64 if available, which may break older Node.js versions (pre-15.7.0).
fix Upgrade to Node.js >=15.7.0 or use esbuild@0.26.0.
deprecated require('esbuild') is deprecated in favor of import.
fix Use import esbuild from 'esbuild' instead.
gotcha This package is not meant to be directly installed; it is an optional dependency of esbuild. Installing it manually may cause version conflicts.
fix Remove esbuild-linux-arm-for-imba from your dependencies; add esbuild instead.
breaking v0.27.0 introduced breaking changes; pin exact version or use ^0.26.0 range.
fix Specify e.g. "esbuild": "0.27.4" in package.json.
gotcha Esbuild does not support CSS modules or full SASS/SCSS; use separate plugins.
fix Use esbuild-css-modules-plugin or @chialab/esbuild-plugin-sass.
npm install esbuild-linux-arm-for-imba
yarn add esbuild-linux-arm-for-imba
pnpm add esbuild-linux-arm-for-imba

Demonstrates programmatic bundling with esbuild, including TypeScript entry, environment variable injection, and browser target.

import esbuild from 'esbuild';

await esbuild.build({
  entryPoints: ['app.ts'],
  bundle: true,
  outfile: 'out.js',
  platform: 'browser',
  target: ['es2020'],
  loader: { '.ts': 'ts' },
  define: { 'process.env.KEY': JSON.stringify(process.env.KEY ?? '') },
});
console.log('Bundled successfully!');