import { defineFeatureModule } from "../feature-module.ts"; import { REFERENCE_FEATURE_CONTRACT, REFERENCE_FEATURE_ID, } from "./contracts/reference-feature-contract.ts"; import { REFERENCE_MESSAGE_CATALOGS } from "./contracts/reference-message-catalog.ts"; export const FEATURE_MODULE_ID = "reference-feature" satisfies typeof REFERENCE_FEATURE_ID; /** Owning bounded context (route root and budget live in its declaration). */ export const FEATURE_CONTEXT_ID = "reference-context"; /** * 15-01. Declaration only: this file and what it imports statically are in the * initial chunk. The executable half is `feature-runtime.ts`, imported here * dynamically and loaded when a reference route is entered. */ export const REFERENCE_FEATURE_MODULE = defineFeatureModule({ id: FEATURE_MODULE_ID, contracts: REFERENCE_FEATURE_CONTRACT, routes: REFERENCE_FEATURE_CONTRACT.routes, messages: REFERENCE_MESSAGE_CATALOGS, loadRuntime: async () => (await import("./feature-runtime.ts")).FEATURE_RUNTIME, } as const); export const FEATURE_MODULE = REFERENCE_FEATURE_MODULE;