MCPcopy
hub / github.com/webpack/webpack / parseOptions

Function parseOptions

lib/container/options.js:79–86  ·  lib/container/options.js::parseOptions
(options, normalizeSimple, normalizeOptions)

Source from the content-addressed store, hash-verified

77 * @returns {[string, R][]} parsed options
78 */
79const parseOptions = (options, normalizeSimple, normalizeOptions) => {
80 /** @type {[string, R][]} */
81 const items = [];
82 process(options, normalizeSimple, normalizeOptions, (key, value) => {
83 items.push([key, value]);
84 });
85 return items;
86};
87
88/**
89 * Returns options to spread or pass.

Callers 5

applyMethod · 0.85
applyMethod · 0.85
applyMethod · 0.85
constructorMethod · 0.85
applyMethod · 0.85

Calls 2

processFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected