interface LibConfig extends EnvironmentConfig {
autoExtension?: boolean;
autoExternal?: AutoExternal;
banner?: BannerAndFooter;
bundle?: boolean;
dts?: Dts;
experiments?: { advancedEsm?: boolean };
externalHelpers?: boolean;
format?: Format;
id?: string;
outBase?: string;
footer?: BannerAndFooter;
redirect?: Redirect;
shims?: Shims;
syntax?: Syntax;
umdName?: Rspack.LibraryName;
}
interface RslibConfig extends RsbuildConfig {
lib: LibConfig[];
}Default: undefined
Required: true
The lib configuration is an array of objects, each representing a distinct set of configurations. These include all Rsbuild configurations as well as Rslib-specific configurations, designed to generate different outputs.