Registry / devops / esbuild-react

esbuild-react

JSON →
library0.2.2jsnpmunverified

esbuild-react is a CLI tool (v0.2.2) for scaffolding barebones React projects that compile with esbuild for maximum speed. It is built with oclif and offers optional choices for TypeScript or JavaScript and npm or Yarn as package managers. The package is stable but has very low download volume and appears to be a small utility rather than a widely maintained library. It requires Node >=8.0.0 and ships TypeScript types. Differentiators include its singular focus on fast esbuild-based setup versus alternatives like create-react-app.

npm install esbuild-react
INSTALL
IMPORT
SIG · ESBUILD-REACT
E
esbuild-react
devopsjavascriptv0.2.2
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.

default
import esbuildReact from 'esbuild-react'
const esbuildReact = require('esbuild-react')
Package is a CLI tool; programmatic imports are not typical. ESM-only.
run CLI
npx esbuild-react my-app -l=typescript -p=npm
esbuild-react my-app --lang=javascript
Use npx or global install. Flags are -l/--language and -p/--package-manager with = syntax.

Scaffold a new React project with TypeScript and npm using esbuild as the bundler.

npx esbuild-react my-react-app -l=typescript -p=npm cd my-react-app npm start
esbuild-react --version
Debug
Known issues
gotchaThe CLI may require Node >=8.0.0, but newer Node versions (>=14) are recommended for esbuild compatibility.
fix
Use Node v14+ for best results.
affects: >=0.0.0
gotchaThe package has not been updated since 2021; check for compatibility with latest React and esbuild versions.
fix
Consider using Vite or create-react-app with esbuild if issues arise.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'esbuild-react'
Package not installed globally or missing from node_modules.
fix
Run `npm install -g esbuild-react` or use `npx esbuild-react`.
'esbuild' is not recognized as an internal or external command
esbuild not installed; the CLI may assume esbuild is globally available.
fix
Add esbuild as a dependency: `npm install --save-dev esbuild`.
Upgrade
Version history
0.2.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

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