MCPcopy
hub / github.com/webpack/webpack / getObjKeys

Function getObjKeys

lib/DefinePlugin.js:141–144  ·  lib/DefinePlugin.js::getObjKeys

* Returns used keys. * @param {DestructuringAssignmentProperties | undefined} properties properties * @returns {Set<string> | undefined} used keys

(properties)

Source from the content-addressed store, hash-verified

139 * @returns {Set<string> | undefined} used keys
140 */
141function getObjKeys(properties) {
142 if (!properties) return;
143 return new Set([...properties].map((p) => p.id));
144}
145
146/**
147 * Whether a value is a nested definition (plain object/array) to recurse into.

Callers 2

applyDefineKeyMethod · 0.85
applyObjectDefineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected