/** * Injection loader — prepends dynamic import() statements to the Flight * client runtime module for every "use client" file discovered by the * plugin's FS walk. * * This replicates what the webpack RSC plugin achieves with * AsyncDependenciesBlock: each import() creates an async chunk group * attached to the runtime module. rspack does not expose a constructible * AsyncDependenciesBlock from JS, so dynamic imports are the only way to * create proper async chunks. * * The loader reads the discovered file list from module-level variables * set by the plugin during `beforeCompile`. The plugin and loader run * in the same Node process, so direct assignment works. */ import type { LoaderDefinition } from 'webpack'; export declare let _discoveredClientFiles: string[]; export declare let _chunkName: string; export declare let _generatedChunkNames: Set; declare const InjectionLoader: LoaderDefinition; export default InjectionLoader; //# sourceMappingURL=injection-loader.d.ts.map