Skip to content

TypeScript API / @laikacms/vite-plugin / RenderModuleOptions

Interface: RenderModuleOptions ​

Properties ​

content ​

ts
content: Record<string, unknown>;

The content fields — each becomes a named export.


mdxSpecifier? ​

ts
optional mdxSpecifier?: string;

Specifier of the item's .mdx body chunk. Its default export is re-exported as Body, deliberately outside the default export: importing the data object must not drag the compiled component (and the MDX runtime) in with it. The raw body string export stays either way.


meta? ​

ts
optional meta?: Record<string, unknown>;

Repository metadata (key, language, status, …). Exported under $-prefixed names so they never collide with content fields.

Released under the MIT License.