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

Function chainWebpack

packages/webpack5/src/index.ts:147–156  ·  view source on GitHub ↗
(
	chainFn: (config: Config, env: IWebpackEnv) => any,
	options?: { order?: number },
)

Source from the content-addressed store, hash-verified

145 * @param options Optional options to control the order in which the chain function should be applied.
146 */
147export function chainWebpack(
148 chainFn: (config: Config, env: IWebpackEnv) => any,
149 options?: { order?: number },
150) {
151 webpackChains.push({
152 order: options?.order || 0,
153 chainFn,
154 plugin: currentPlugin,
155 });
156}
157
158/**
159 * Merge an object into the resolved chain config.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected