MCPcopy
hub / github.com/babel/babel / exit

Function exit

packages/babel-plugin-transform-react-jsx/src/create-plugin.ts:337–346  ·  view source on GitHub ↗
(path, file)

Source from the content-addressed store, hash-verified

335
336 JSXFragment: {
337 exit(path, file) {
338 let callExpr;
339 if (get(file, "runtime") === "classic") {
340 callExpr = buildCreateElementFragmentCall(path, file)!;
341 } else {
342 callExpr = buildJSXFragmentCall(path, file);
343 }
344
345 path.replaceWith(t.inherits(callExpr, path.node));
346 },
347 },
348
349 JSXElement: {

Callers

nothing calls this directly

Calls 6

buildJSXFragmentCallFunction · 0.85
shouldUseCreateElementFunction · 0.85
buildCreateElementCallFunction · 0.85
buildJSXElementCallFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…