Skip to content

Commit

Permalink
[babel 8] Remove availableHelper("usingCtx") check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 22, 2024
1 parent 3b1a3c0 commit 3fe2aec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default declare(api => {
path: NodePath<t.BlockStatement | t.StaticBlock>,
state,
) {
if (state.availableHelper("usingCtx")) {
if (process.env.BABEL_8_BREAKING || state.availableHelper("usingCtx")) {
let ctx: t.Identifier | null = null;
let needsAwait = false;

Expand Down

0 comments on commit 3fe2aec

Please sign in to comment.