From e29b244aeab08ea36fb385c7beb2ad0560217039 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Oct 2024 10:37:19 +0800 Subject: =?UTF-8?q?bump:=20@babel/cli=207.25.6=20=E2=86=92=207.25.7,=20@ba?= =?UTF-8?q?bel/core=207.25.2=20=E2=86=92=207.25.8,=20@babel/preset-env=207?= =?UTF-8?q?.25.4=20=E2=86=92=207.25.8,=20postcss=208.4.41=20=E2=86=92=208.?= =?UTF-8?q?4.47,=20swup=204.7.0=20=E2=86=92=204.8.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node_modules/@babel/core/cjs-proxy.cjs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'node_modules/@babel/core/cjs-proxy.cjs') diff --git a/node_modules/@babel/core/cjs-proxy.cjs b/node_modules/@babel/core/cjs-proxy.cjs index 17dac4a9..accdb43d 100644 --- a/node_modules/@babel/core/cjs-proxy.cjs +++ b/node_modules/@babel/core/cjs-proxy.cjs @@ -29,6 +29,15 @@ const propertyNames = [ for (const name of functionNames) { exports[name] = function (...args) { + if ( + process.env.BABEL_8_BREAKING && + typeof args[args.length - 1] !== "function" + ) { + throw new Error( + `Starting from Babel 8.0.0, the '${name}' function expects a callback. If you need to call it synchronously, please use '${name}Sync'.` + ); + } + babelP.then(babel => { babel[name](...args); }); -- cgit v1.2.3