MCPcopy
hub / github.com/webpack/webpack / handleFunction

Function handleFunction

test/helpers/prepareOptions.js:39–40  ·  view source on GitHub ↗
(options, argv)

Source from the content-addressed store, hash-verified

37 * @returns {Config | Promise<Config>} config
38 */
39const handleFunction = (options, argv) =>
40 typeof options === "function" ? options(argv.env, argv) : options;
41
42/**
43 * Stays synchronous for synchronous configs so callers that don't await keep working.

Callers 1

prepareOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected