Skip to content

Commit

Permalink
Fix building external-helpers with conflicting internal names
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 8, 2022
1 parent 430c39e commit d7c3717
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/babel-core/src/tools/build-external-helpers.ts
Expand Up @@ -177,7 +177,11 @@ function buildHelpers(
helpers.ensure(name, File);
const { nodes } = helpers.get(name, getHelperReference, ref);

body.push(...nodes);
body.push(
expressionStatement(
callExpression(functionExpression(null, [], blockStatement(nodes)), []),
),
);
});
return refs;
}
Expand Down

0 comments on commit d7c3717

Please sign in to comment.