MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / pickEnvs

Function pickEnvs

scripts/webpack.conf.js:32–36  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

30 });
31
32const pickEnvs = (items) => {
33 return Object.assign({}, ...items.map(key => ({
34 [`process.env.${key}`]: JSON.stringify(configLoader.get(key)),
35 })));
36};
37
38const defsObj = {
39 ...pickEnvs([

Callers 1

webpack.conf.jsFile · 0.85

Calls 2

mapMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected