/** * Webpack loader for Domscribe transform * * Per-file transform loader that injects `data-ds` attributes into JSX/TSX/Vue * source code. Requires DomscribeWebpackPlugin to be registered for lifecycle * management (InjectorRegistry and ManifestWriter initialization). * * @module @domscribe/transform/plugins/webpack/webpack-loader */ import type { LoaderContext } from 'webpack'; import { WebpackLoaderOptions } from './types.js'; import { SourceMap } from 'magic-string'; export default function domscribeLoader(this: LoaderContext, source: string, sourceMap?: SourceMap): string | void; export declare function transform(context: LoaderContext, { source, sourceMap }: { source: string; sourceMap?: SourceMap; }, callback: ReturnType['async']>): Promise; //# sourceMappingURL=webpack.loader.d.ts.map