@brickkit/cli/compiler
Compile and bind a Brick application's routes ahead of time.
@brickkit/cli/compiler exports 1 name: 1 function.
import { emitCompiledApplication } from "@brickkit/cli/compiler";Functions
| Function | Description |
|---|---|
emitCompiledApplication | An ES module of real JS functions; it never stringifies application callbacks. |
emitCompiledApplication
function emitCompiledApplication(
ir: BrickIR,
runtimeImport = "@brickkit/core",
): stringAn ES module of real JS functions; it never stringifies application callbacks.
Parameters
| Name | Type | Description |
|---|---|---|
ir | BrickIR | |
runtimeImport? | string default "@brickkit/core" |
Returns string