@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
15 lines • 761 B
text/typescript
import type { LoaderContext } from 'webpack';
export type LoaderOptions = {};
/**
* Webpack loader that processes demo client files and precomputes externals.
*
* Finds createDemoClient calls and injects all required externals as imports
* at the top of the file, then passes them to the function as precompute.externals.
*
* The pattern expected is: create*Client(import.meta.url, { options: true })
* The result will be: create*Client(import.meta.url, { options: true, precompute: { externals } })
*
* Automatically skips processing if skipPrecompute: true is set.
*/
export declare function loadPrecomputedCodeHighlighterClient(this: LoaderContext<LoaderOptions>, source: string): Promise<void>;
export default loadPrecomputedCodeHighlighterClient;