/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-1-setup-b887180bcc0e-1-setup-s0445-c0003.md
1. Setup (4) - hono-docs
1. Setup (4) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt 1 setup Summary Once you have a basi...
1. Setup (4)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#1-setup
Summary
Once you have a basic TypeScript configuration file (tsconfig.json), please ensure it has the following configuration: - compilerOptions.module set to "nodenext" Since componentize-js (and jco which re-uses it) supports only si...
Content
Once you have a basic TypeScript configuration file (tsconfig.json), please ensure it has the following configuration:
compilerOptions.moduleset to"nodenext"
Since componentize-js (and jco which re-uses it) supports only single JS files,
bundling is necessary, so [rolldown][rolldown] can be used to create a single file bundle.
A Rolldown configuration (rolldown.config.mjs) like the following can be used:
import { defineConfig } from 'rolldown'
export default defineConfig({
input: 'src/component.ts',
external: /wasi:.*/,
output: {
file: 'dist/component.js',
format: 'esm',
},
})::: info
Feel free to use any other bundlers that you're more comfortable with (rolldown, esbuild, rollup, etc)
:::