@opentui/core/runtime-plugin
Every export of @opentui/core/runtime-plugin 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
Interfaces#
interface CreateRuntimePluginOptionsproperty CreateRuntimePluginOptions.additional?: Record<string, RuntimeModuleEntry>property CreateRuntimePluginOptions.core?: RuntimeModuleEntryproperty CreateRuntimePluginOptions.preserve?: RuntimeSpecifierPreserve0.5.15property CreateRuntimePluginOptions.rewrite?: RuntimePluginRewriteOptions
interface RuntimePluginRewriteOptionsproperty RuntimePluginRewriteOptions.nodeModulesBareSpecifiers?: booleanproperty RuntimePluginRewriteOptions.nodeModulesRuntimeSpecifiers?: boolean
Types#
type RuntimeModuleEntry = RuntimeModuleExports | RuntimeModuleLoadertype RuntimeModuleExports = Record<string, unknown>type RuntimeModuleLoader = () => RuntimeModuleExports | Promise<RuntimeModuleExports>type RuntimeSpecifierPreserve = readonly string[] | ReadonlySet<string> | ((specifier: string) => boolean)
Constants and variables#
const isCoreRuntimeModuleSpecifier: (specifier: string) => booleanconst runtimeModuleIdForSpecifier: (specifier: string) => string