vite-plugin-mdx
Version:
Vite plugin for MDX
16 lines • 577 B
TypeScript
import { Plugin } from 'vite';
import { MdxPlugin, MdxOptions } from '../types';
/**
* With transclusion enabled, an `.mdx` file can import other `.mdx` or `.md`
* files without an import specifier.
*
* import "../other.mdx"
*
* The file extension is required.
*
* The imported file is inlined into its importer, but the imported file can
* still have its own Remark plugins.
*
*/
export declare function viteMdxTransclusion(globalMdxOptions: MdxPlugin['mdxOptions'], getMdxOptions?: (filename: string) => MdxOptions): Plugin;
//# sourceMappingURL=index.d.ts.map