(variableName, module, t)
| 345 | } |
| 346 | |
| 347 | const 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 | }; |
| 354 | let docs = ``; |
| 355 | const plugin = function (babel) { |
| 356 | const t = babel.types; |
no outgoing calls
no test coverage detected
searching dependent graphs…