brick.ts

@brickkit/cli/compiler

Emit the JavaScript module of a compiled application's route handlers, and each handler factory, for an ahead-of-time build.

llms.txt

@brickkit/cli/compiler exports 2 names: 2 functions.

import { emitCompiledApplication, emitHandlerFactory } from "@brickkit/cli/compiler";

Functions

FunctionDescription
emitCompiledApplicationThe routes.js module of a build: the compiled IR the built server checks its app against.
emitHandlerFactoryA route's handler factory for brick build: it binds the runtime pipeline, so no framework logic is emitted.

emitCompiledApplication

function emitCompiledApplication(ir: BrickIR, _runtimeImport?: string): string

The routes.js module of a build: the compiled IR the built server checks its app against.

Parameters

NameTypeDescription
irBrickIR
_runtimeImport?string

Returns string

Source: packages/cli/src/compiler.ts:13

emitHandlerFactory

function emitHandlerFactory(_route: RouteIR): string

Deprecated. brick build no longer emits handler factories; built servers bind routes at startup.

A route's handler factory for brick build: it binds the runtime pipeline, so no framework logic is emitted.

Parameters

NameTypeDescription
_routeRouteIR

Returns string

Source: packages/cli/src/compiler.ts:8

On this page

Generated from the JSDoc above each export. Edit the comment there.