From 8363cacc0718d3750ee357f5d0f6306b57bba79a Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:31:11 +0800 Subject: [PATCH] fix --- src/injectCaller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/injectCaller.js b/src/injectCaller.js index d0e09750..b6e62a59 100644 --- a/src/injectCaller.js +++ b/src/injectCaller.js @@ -35,7 +35,7 @@ function supportsCallerOption() { try { // Rather than try to match the Babel version, we just see if it throws // when passed a 'caller' flag, and use that to decide if it is supported. - babel.loadPartialConfig({ + babel.loadPartialConfigSync({ caller: undefined, babelrc: false, configFile: false,