UNPKG

babel-plugin-explicit-exports-references

Version:

Transforms all internal references to a module's exports such that each reference starts with `module.exports` instead of directly referencing an internal name. This enables easy mocking of specific (exported) functions in Jest with Babel/TypeScript, even

7 lines (6 loc) 167 B
import { PluginObj, PluginPass } from '@babel/core'; export default function (): PluginObj<PluginPass & { opts: { transformAssignExpr: boolean; }; }>;