Reference
@reckona/mreact-shared/compiler-contract
17 public exports.
Interface
InterfaceClientReferenceMetadata
interface ClientReferenceMetadataClient component export recorded for React Flight manifests.InterfaceCompilerMetadatainterface CompilerMetadataCompiler implementation metadata stored with a transform result.InterfaceComponentMetadatainterface ComponentMetadataComponent export discovered by the compiler for runtime registration.InterfaceDiagnosticinterface DiagnosticCompiler diagnostic reported for a transformed source module.InterfaceDiagnosticSuggestioninterface DiagnosticSuggestionSuggested action or reference attached to a compiler diagnostic.InterfaceEventHydrationEntryMetadatainterface EventHydrationEntryMetadataEvent handler hydration entry recorded by the compiler.InterfaceEventHydrationManifestMetadatainterface EventHydrationManifestMetadataEvent hydration manifest metadata emitted with transformed server output.InterfaceHtmlSinkinterface HtmlSinkReceives HTML chunks and deferred work while server rendering.InterfaceModuleMetadatainterface ModuleMetadataMetadata that describes the transformed module and its runtime dependencies.InterfaceRuntimeImportinterface RuntimeImportRuntime import required by transformed source output.InterfaceSourceLocationinterface SourceLocationOne-based source location used by compiler diagnostics.InterfaceTransformOutputinterface TransformOutputComplete source transform result emitted by a compiler frontend.Type Alias
Type AliasCompilerFrontend
type CompilerFrontend = "oxc"Compiler frontend implementation that produced a transform result.Type AliasCompileTargettype CompileTarget = "client" | "server"Compilation target used to select client or server output.Type AliasServerBootstrapModetype ServerBootstrapMode = "none" | "out-of-order-reorder"Bootstrap script mode requested by server output metadata.Type AliasServerOutputModetype ServerOutputMode = "string" | "stream"Server rendering mode requested for transformed component output.