widgets.compile
Compiles a card’s one-file widget source to an ES module, writing nothing (PRT-225).
Params: CompileWidgetParams
Section titled “Params: CompileWidgetParams”/** `widgets.compile` params (PRT-225): the source of a card's one-file widget. */export type CompileWidgetParams = { code: string;};Result: CompiledWidget
Section titled “Result: CompiledWidget”/** `widgets.compile` result (PRT-225): the ES module, with an inline source map. */export type CompiledWidget = { module: string;};