UNPKG

@ckeditor/ckeditor5-dev-utils

Version:
24 lines (23 loc) 868 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. */ /// <reference types="node" /> /// <reference types="node" /> interface MinimalLoaderContext { query: { debugFlags: Array<string>; }; callback(err: Error | null, content?: string | Buffer, sourceMap?: unknown): void; } /** * The loader matches sentences like: `// @if CK_DEBUG // someDebugCode();` and uncomment them. * It also uncomments code after specific flags if they are provided to the webpack configuration. * E.g. if the `CK_DEBUG_ENGINE` flag is set to true, then all lines starting with * `// @if CK_DEBUG_ENGINE //` will be uncommented. * * @param {string} source * @param {any} map */ export default function ckDebugLoader(this: MinimalLoaderContext, source: string, map: unknown): void; export {};