💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
REPL
export let foo = 1n;
foo++;
Configuration file name
No response
Configuration
No response
Current and expected behavior
exports.foo = void 0;
var _foo;
let foo = 1n;
exports.foo = foo;
_foo = +foo, exports.foo = foo = _foo + 1, _foo;
Note: cannot mix bigint with number.
Environment
default config
Possible solution
++foo
=> exports.foo = ++foo
bar++
=> (ref = bar++, exports.bar = bar, ref)
Additional context
No response
💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
REPL
Configuration file name
No response
Configuration
No response
Current and expected behavior
Note: cannot mix bigint with number.
Environment
default config
Possible solution
Additional context
No response