Registry / devops / bunny-hono-esbuild

bunny-hono-esbuild

JSON →
library0.0.4jsnpmunverified

Provides esbuild configuration presets for building Hono applications for Bunny.net Edge Scripting. Current stable version is 0.0.4. The package is now in maintenance mode; the preferred approach is to use the official bundling guide from bunny-launcher. It simplifies bundling Hono apps for Bunny's edge computing platform with esbuild as the bundler. Ships TypeScript types. Requires Node >=20, esbuild ^0.24.0, and hono ^4.6.5 as peer dependencies.

npm install bunny-hono-esbuild
INSTALL
IMPORT
SIG · BUNNY-HONO-ESBUILD
B
bunny-hono-esbuild
devopsjavascriptv0.0.4
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 honoEsbuild from 'bunny-hono-esbuild'
const honoEsbuild = require('bunny-hono-esbuild')
Package is ESM-only. CommonJS require will fail.
HonoEsbuildOptions
import type { HonoEsbuildOptions } from 'bunny-hono-esbuild'
import { HonoEsbuildOptions } from 'bunny-hono-esbuild'
HonoEsbuildOptions is a TypeScript type, not a runtime value. Use type import.
default function
import honoEsbuild from 'bunny-hono-esbuild'
import { honoEsbuild } from 'bunny-hono-esbuild'
The package only has a default export, not a named export.

Shows how to use the default export from bunny-hono-esbuild to configure esbuild for bundling a Hono app for Bunny.net Edge Scripting.

import { build } from 'esbuild'; import honoEsbuild from 'bunny-hono-esbuild'; build({ entryPoints: ['src/index.ts'], outfile: 'dist/bundle.js', bundle: true, ...honoEsbuild() }).catch(() => process.exit(1));
Debug
Known issues
deprecatedPackage is in maintenance mode. Please use the official bundling guide instead.
fix
Follow the bunny-launcher bundling guide at https://bunny-launcher.net/edge-scripting/bundling/
affects: >=0.0.1
breakingPackage is ESM-only and requires Node >=20. Older Node versions or CJS import will fail.
fix
Use Node >=20 and ensure your project is configured for ESM (type: module in package.json or .mjs extension).
affects: >=0.0.1
gotchaPeer dependencies on esbuild ^0.24.0 and hono ^4.6.5 must be installed separately.
fix
Run: npm install --save-dev esbuild@^0.24.0 hono@^4.6.5
affects: >=0.0.1
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module
Using CommonJS require() to load an ESM-only package.
fix
Switch to dynamic import() or use type: module in package.json.
Cannot find module 'esbuild'
Missing peer dependency esbuild.
fix
Run: npm install --save-dev esbuild@^0.24.0
Module not found: Error: Can't resolve 'hono'
Missing peer dependency hono.
fix
Run: npm install --save-dev hono@^4.6.5
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
bunny-hono-esbuild — npm install bunny-hono-esbuild · libregistry