Open joaoruntime opened 1 week ago
Minimum repro:
var a = function () {};
a();
function a() {}
Due to hoisting, transpiler outputs:
let a = function() {
};
var a = function() {
};
a();
ive seen this before.
this is very similar but not the exact same to #5732, where the minimum reproduction is:
function A() {}
var A;
What version of Bun is running?
1.1.16
What platform is your computer?
Darwin 21.6.0 x86_64 i386
What steps can reproduce the bug?
package.json
testTS.ts
What is the expected behavior?
The script initiate the connections with the service and return a QR code after that the app finish their connection and run as expected
What do you see instead?
SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: '__importStar'.
Additional information
No response