Registry / devops / esbuild-config

esbuild-config

JSON →
library1.0.1jsnpmunverified

A Rust-based CLI tool that converts a JSON configuration file (esbuild.config.json) into command-line arguments for esbuild. Version 1.0.1, released with Windows binary path fix and arm64 support on macOS/Linux. Unlike other config wrappers, esbuild-config does no validation, making it version-independent; it only translates JSON types to esbuild's argument format. It can be installed via npm, Cargo, or precompiled binaries. The project is developed in Rust and is currently in active maintenance mode.

npm install esbuild-config
INSTALL
IMPORT
SIG · ESBUILD-CONFIG
E
esbuild-config
devopsjavascriptv1.0.1
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.

esbuild-config
npx esbuild-config
require('esbuild-config')
This package is a CLI tool, not a library. Use npx or install globally.
esbuild.config.json
Create esbuild.config.json and run `esbuild $(esbuild-config)`
Importing a default config from node_modules
The tool reads a config file; there is no programmatic API.

Creates a simple esbuild config JSON file and runs esbuild-config to output the corresponding CLI arguments.

echo '{ "entry": "./index.js", "outfile": "./bundle.js", "external": ["react", "react-dom"], "loader": { ".js": "jsx", ".png": "base64" }, "minify": true }' > esbuild.config.json npx esbuild-config
esbuild-config --version
Debug
Known issues
gotchaThe package does not validate configuration values; invalid options will be passed to esbuild and may cause errors.
fix
Double-check all config keys against esbuild's CLI options.
affects: >=0.1.0
gotchaThe entry field is moved to the end of the argument list automatically. If you pass multiple entry points as an array, they will all appear at the end.
fix
Use an array for multiple entry points, and note that the order in the array determines the order in the output.
affects: >=0.1.0
Errors
Common errors & fixes
error: Unknown command: esbuild-config
esbuild-config is not installed or not in PATH.
fix
Install globally: npm install --global esbuild-config
error: No such file: esbuild.config.json
The current directory does not contain a config file, and no file path is provided.
fix
Create esbuild.config.json or specify a path: esbuild $(esbuild-config ./path/to/config.json)
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
esbuild-config — npm install esbuild-config · libregistry