UNPKG

next-mdxlayer

Version:

Next.js plugin to integrate mdxlayer CLI and generated content

24 lines (23 loc) 836 B
import { ChildProcess } from 'node:child_process'; declare global { var __mdxlayerDevProcess: ChildProcess | undefined; } /** * Next.js plugin to integrate the MDXLayer build system. * * This plugin automatically runs `mdxlayer dev` or `mdxlayer build` * based on the current process arguments. It also injects the `mdxlayer/generated` * alias into the Webpack configuration to enable project-wide access * to the generated files. * * @param {import('next').NextConfig} [nextConfig={}] - Optional Next.js configuration object. * @returns {import('next').NextConfig} - The enhanced Next.js configuration with MDXLayer support. */ export declare const withMdxlayer: (nextConfig?: {}) => { turbopack: { resolveAlias: { 'mdxlayer/generated': string; }; }; webpack(config: any): any; };