UNPKG

babel-plugin-show-source

Version:

Explicit Function.prototype.toString() via Babel

3 lines (2 loc) 290 B
import { NodePath, types } from '@babel/core'; export default function createInjectionWrapper(path: NodePath<types.ArrowFunctionExpression | types.FunctionExpression>, funcCode: string | undefined, property: string, removeFunction?: boolean): types.CallExpression | types.ObjectExpression;