From 78daf6decb6147a9a1ea774f4e732d631ea64dc8 Mon Sep 17 00:00:00 2001 From: Jiri Zbytovsky Date: Fri, 13 Dec 2024 17:35:32 +0100 Subject: [PATCH] fix(type): Add missing OptimizationSplitChunksNameFunction param --- packages/rspack/src/config/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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