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

esbuild-openbsd-64-for-imba

JSON →
library0.0.2035jsnpmunverified

esbuild is an extremely fast JavaScript bundler and minifier written in Go. Current stable version is 0.21.x (as of this entry). It is released weekly with frequent bug fixes and features. Key differentiators include unmatched speed (10-100x faster than Webpack/Rollup), native Go implementation, built-in bundling, minification, TypeScript and JSX support, and a plugin API. It is designed for modern ESM and CJS workflows, and provides platform-specific binary packages like esbuild-openbsd-64-for-imba for easy installation.

npm install esbuild-openbsd-64-for-imba
INSTALL
IMPORT
SIG · ESBUILD-OPENBSD-64
E
esbuild-openbsd-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')
ESM import is recommended; CJS require also works. Since v0.17, the default export is an object containing all functions.
transform
import { transform } from 'esbuild'
Used for transforming a single file in memory. Available since v0.6.
BuildOptions
import type { BuildOptions } from 'esbuild'
import { BuildOptions } from 'esbuild'
TypeScript users should import types with `import type` to avoid runtime inclusion.

Shows basic bundling and minification with esbuild's build API using async/await.

import { build } from 'esbuild'; async function bundle() { try { const result = await build({ entryPoints: ['src/index.js'], outfile: 'dist/bundle.js', bundle: true, minify: true, platform: 'browser', target: ['es2020'], }); console.log('Build succeeded:', result); } catch (e) { console.error('Build failed:', e.message); } } bundle();
Debug
Known issues
breakingIn v0.27.0, esbuild introduced backwards-incompatible changes. Pin exact version to avoid unexpected upgrades.
fix
Use a version range like `^0.26.0` or `~0.26.0` in package.json, or pin to an exact version.
affects: >=0.27.0
breakingIn v0.26.0, esbuild enabled trusted publishing via GitHub Actions. If you rely on the old publishing method, update your workflows.
fix
Ensure your CI/CD pipeline trusts the new publisher.
affects: >=0.26.0
gotchaWhen using `require('esbuild')` in CommonJS, you must access `.build` etc. as properties; the default export is not a function.
fix
Use `const esbuild = require('esbuild'); esbuild.build(...)` or switch to ESM imports.
affects: >=0.17.0
deprecatedThe `startService` API is deprecated since v0.9.0 and removed in v0.13.0. Use `build` and `transform` directly.
fix
Replace `startService` with direct calls to `build` and `transform`.
affects: >=0.13.0
gotchaPlatform-specific binaries (e.g., esbuild-openbsd-64-for-imba) are automatically downloaded by the main esbuild package. Manual installation is not needed and can cause version mismatches.
fix
Install only `esbuild` as a dependency; do not add platform-specific packages directly.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'esbuild'
esbuild is not installed or the platform-specific binary is missing.
fix
Run `npm install esbuild` (or yarn/pnpm equivalent). Ensure your node version is >=12.
Error: The package 'esbuild' was built for a different platform.
The installed platform-specific binary does not match the current OS/architecture.
fix
Delete node_modules and reinstall. Use `npm install esbuild --save-dev` to install the correct binary automatically.
TypeError: esbuild.build is not a function
Using `require('esbuild')` and calling `.build` directly without accessing the correct property in older versions.
fix
If using CommonJS, use `const esbuild = require('esbuild'); esbuild.build(...)`. If using ESM, use `import { build } from 'esbuild'`.
Upgrade
Version history
0.0.2035latest on npm
Audit
Dependencies
esbuildrequiredParent package; this is a platform-specific binary used by esbuild
Agent activity
2 hits · last 30 days
node
2
Resources
esbuild-openbsd-64-for-imba — npm install esbuild-openbsd-64-for-imba · libregistry