esbundle
raw JSON → 0.0.2 verified Sat Apr 25 auth: no javascript
A client-side transpiler, bundler, and dynamic npm package fetcher/loader intended to run in the browser. Version 0.0.2 pre-release, no stable version available yet. Uses esbuild internally for transpilation and bundles packages from unpkg. Differentiates from other client-side bundlers (e.g., bundle.run, snowpack) by integrating dynamic npm package fetching and loading directly in the browser. Currently in early development with no working release; not suitable for production.
Warnings
gotcha Package is in pre-release (v0.0.2) and 'Coming Soon' status; no working version has been released. ↓
fix Wait for a stable release or use alternative client-side bundlers like esbuild-wasm or bundle.run.
breaking Future releases may have breaking changes without notice due to pre-release status. ↓
fix Pin to current version and expect to update frequently.
Install
npm install esbundle yarn add esbundle pnpm add esbundle Imports
- esbundle wrong
const esbundle = require('esbundle')correctimport esbundle from 'esbundle' - bundle
import { bundle } from 'esbundle' - transpile
import { transpile } from 'esbundle'
Quickstart
import esbundle from 'esbundle';
const code = `import { format } from 'date-fns';
console.log(format(new Date(), 'yyyy-MM-dd'));`;
(async () => {
try {
const result = await esbundle({
code,
dependencies: { 'date-fns': '^2.0.0' }
});
console.log(result); // bundled & transpiled code
} catch (error) {
console.error('esbundle error:', error);
}
})();