type LazyCompilationOptions =
| boolean
| {
/**
* Enable lazy compilation for entries.
*/
entries?: boolean;
/**
* Enable lazy compilation for dynamic imports.
*/
imports?: boolean;
/**
* Specify which imported modules should be lazily compiled.
*/
test?: RegExp | ((m: Module) => boolean);
/**
* The path to a custom runtime code that overrides the default lazy compilation client.
*/
client?: string;
/**
* Tells the client the server URL that needs to be requested.
*/
serverUrl?: string;
};falseEnable lazy compilation (compilation on demand), implemented based on Rspack's lazy compilation feature.
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - dev.lazyCompilation。 In Rspack build mode,