MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / mergeWebpack

Function mergeWebpack

packages/webpack5/src/index.ts:163–169  ·  view source on GitHub ↗
(
	mergeFn:
		| ((config: Partial<webpack.Configuration>, env: IWebpackEnv) => any)
		| Partial<webpack.Configuration>,
)

Source from the content-addressed store, hash-verified

161 * @param mergeFn An object or a function that optionally returns an object (can mutate the object directly and return nothing)
162 */
163export function mergeWebpack(
164 mergeFn:
165 | ((config: Partial<webpack.Configuration>, env: IWebpackEnv) => any)
166 | Partial<webpack.Configuration>,
167) {
168 webpackMerges.push(mergeFn);
169}
170
171/**
172 * Resolve a new instance of the internal chain config with all chain functions applied.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected