diff --git a/packages/rspack/src/config/types.ts b/packages/rspack/src/config/types.ts index 629d18f05eb..4e3da04509b 100644 --- a/packages/rspack/src/config/types.ts +++ b/packages/rspack/src/config/types.ts @@ -2058,7 +2058,10 @@ export type OptimizationRuntimeChunk = name?: string | ((value: { name: string }) => string); }; -export type OptimizationSplitChunksNameFunction = (module?: Module) => unknown; +export type OptimizationSplitChunksNameFunction = ( + module?: Module, + chunks?: Chunk[] +) => unknown; type OptimizationSplitChunksName = | string