mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
fix(webpack): union type (#10575)
This commit is contained in:
@ -158,10 +158,10 @@ export function chainWebpack(
|
|||||||
* @param mergeFn An object or a function that optionally returns an object (can mutate the object directly and return nothing)
|
* @param mergeFn An object or a function that optionally returns an object (can mutate the object directly and return nothing)
|
||||||
*/
|
*/
|
||||||
export function mergeWebpack(
|
export function mergeWebpack(
|
||||||
mergeFn: (
|
mergeFn: ((
|
||||||
config: Partial<webpack.Configuration>,
|
config: Partial<webpack.Configuration>,
|
||||||
env: IWebpackEnv,
|
env: IWebpackEnv,
|
||||||
) => any | Partial<webpack.Configuration>,
|
) => any) | Partial<webpack.Configuration>,
|
||||||
) {
|
) {
|
||||||
webpackMerges.push(mergeFn);
|
webpackMerges.push(mergeFn);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user