These docs describe the main branch, including unreleased changes. Read the 0.6.0 docs.

@opentui/core/runtime-plugin-support/configure

Every export of @opentui/core/runtime-plugin-support/configure in the main-branch source, from its type declarations. A version names the release that added an export after the module's first release.

Functions#

function createRuntimePlugin(input?: CreateRuntimePluginOptions): BunPlugin
Load at runtime
function ensureRuntimePluginSupport(options?: CreateRuntimePluginOptions): boolean
Load at runtime

Interfaces#

interface CreateRuntimePluginOptions
Load at runtime
  • property CreateRuntimePluginOptions.additional?: Record<string, RuntimeModuleEntry>
  • property CreateRuntimePluginOptions.core?: RuntimeModuleEntry
  • property CreateRuntimePluginOptions.preserve?: RuntimeSpecifierPreserve0.5.15
  • property CreateRuntimePluginOptions.rewrite?: RuntimePluginRewriteOptions

Types#

type RuntimeModuleEntry = RuntimeModuleExports | RuntimeModuleLoader
Load at runtime
type RuntimeModuleExports = Record<string, unknown>
Load at runtime
type RuntimeModuleLoader = () => RuntimeModuleExports | Promise<RuntimeModuleExports>
Load at runtime
type RuntimeSpecifierPreserve = readonly string[] | ReadonlySet<string> | ((specifier: string) => boolean)
Added in 0.5.15Load at runtime

Constants and variables#

const runtimeModuleIdForSpecifier: (specifier: string) => string
Load at runtime