You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bundled file has: console.log(Number(Math.pow(2n,53n)));
However Math.pow doesn't take BigInt parameters, hence the parameters should be fixed accordingly to the use of Math.pow or use simply exponent arithmetic operator.
The text was updated successfully, but these errors were encountered:
As a workaround, if your compilation targets already supported exponent arithmetic operator, please specify the targets option so that preset-env will not enable the exponent transform, for example, you can specify last 3 versions of every current browsers:
Webpack Version:
"webpack": "^6.0.1",
Babel Core Version:
"@babel/preset-env": "^7.26.7",
Babel Loader Version:
9.1.3
I have this small code-snippet:
console.log(Number(2n**53n));
After bundling it with the following configuration:
The bundled file has:
console.log(Number(Math.pow(2n,53n)));
However Math.pow doesn't take BigInt parameters, hence the parameters should be fixed accordingly to the use of Math.pow or use simply exponent arithmetic operator.
The text was updated successfully, but these errors were encountered: