/** * "use client" detector loader. * * Attached by RSCRspackPlugin to every JS/TS module during compilation. * Reads the source, checks if the file starts with a `"use client"` * directive (accounting for BOM, shebangs, and leading comments), and if * so adds the module's resourcePath to a per-compilation Set keyed by the * `CLIENT_MODULES_KEY` Symbol. The plugin consumes that Set at * `processAssets` time to emit the manifest. * * The loader passes the source through unchanged — it is purely a reporter. * * IMPORTANT: communication with the plugin goes via a Symbol-keyed * property on the compilation object (`compilation[CLIENT_MODULES_KEY]`). * The plugin eagerly creates the Set in `thisCompilation` so the loader * never races on initialization. */ import type { LoaderDefinition } from 'webpack'; declare const RSCRspackLoader: LoaderDefinition; export default RSCRspackLoader; //# sourceMappingURL=loader.d.ts.map