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

Function isPeerDep

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

Source from the content-addressed store, hash-verified

202 const externals = Object.keys(pkg.peerDependencies || {});
203
204 function isPeerDep(dep) {
205 return new RegExp(`^${dep}($|/)`).test(request);
206 }
207
208 return externals.some(isPeerDep) ? cb(null, request) : cb();
209 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected