kjelsrud.dev/node_modules/@astrojs/mdx/dist/rehype-optimize-static.d.ts
2023-07-19 21:31:30 +02:00

11 lines
455 B
TypeScript

export interface OptimizeOptions {
customComponentNames?: string[];
}
/**
* For MDX only, collapse static subtrees of the hast into `set:html`. Subtrees
* do not include any MDX elements.
*
* This optimization reduces the JS output as more content are represented as a
* string instead, which also reduces the AST size that Rollup holds in memory.
*/
export declare function rehypeOptimizeStatic(options?: OptimizeOptions): (tree: any) => void;