MCPcopy Create free account
hub / github.com/parse-community/parse-server / makeRequire

Function makeRequire

resources/buildConfigDefinitions.js:347–353  ·  view source on GitHub ↗
(variableName, module, t)

Source from the content-addressed store, hash-verified

345}
346
347const makeRequire = function (variableName, module, t) {
348 const decl = t.variableDeclarator(
349 t.identifier(variableName),
350 t.callExpression(t.identifier('require'), [t.stringLiteral(module)])
351 );
352 return t.variableDeclaration('var', [decl]);
353};
354let docs = ``;
355const plugin = function (babel) {
356 const t = babel.types;

Callers 1

pluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…