MCPcopy Create free account
hub / github.com/decaporg/decap-cms / isPeerDep

Function isPeerDep

scripts/webpack.js:216–218  ·  view source on GitHub ↗
(dep)

Source from the content-addressed store, hash-verified

214 const externals = Object.keys(pkg.peerDependencies || {});
215
216 function isPeerDep(dep) {
217 return new RegExp(`^${dep}($|/)`).test(request);
218 }
219
220 return externals.some(isPeerDep) ? cb(null, request) : cb();
221 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected