Skip to content

Commit 0e2db6e

Browse files
authored
fix(webpack): union type (#10575)
1 parent 7f2d51e commit 0e2db6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/webpack5/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export function chainWebpack(
158158
* @param mergeFn An object or a function that optionally returns an object (can mutate the object directly and return nothing)
159159
*/
160160
export function mergeWebpack(
161-
mergeFn: (
161+
mergeFn: ((
162162
config: Partial<webpack.Configuration>,
163163
env: IWebpackEnv,
164-
) => any | Partial<webpack.Configuration>,
164+
) => any) | Partial<webpack.Configuration>,
165165
) {
166166
webpackMerges.push(mergeFn);
167167
}

0 commit comments

Comments
 (0)