src/helpers/root-jsx.js
function inPatchRoot(path, plugin) {
  const { opts } = plugin;
  if (useFastRoot(path, opts)) {
    return true;
  }

  const roots = patchRoots(plugin)
  return !roots.length || path.findParent((parent) => {
    return roots.indexOf(parent) > -1;
  });
}
function inPatchRoot(path, plugin) {
  const { opts } = plugin;
  if (useFastRoot(path, opts)) {
    return true;
  }

  const roots = patchRoots(plugin)
  return !roots.length || path.findParent((parent) => {
    return roots.indexOf(parent) > -1;
  });
}
function inPatchRoot ( path , plugin ) { const { opts } = plugin ; if ( useFastRoot ( path , opts ) ) { return true ; } const roots = patchRoots ( plugin ) return ! roots . length || path . findParent ( ( parent ) => { return roots . indexOf ( parent ) > - 1 ; } ) ; }
Determines if the JSX element is nested inside a patch's rendering function.
Determines if the JSX element is nested inside a patch s rendering function .