function test() {
if (window.doesntExist) {
var callback = true
}
return () => {
console.log(callback ? "ng" : "ok")
};
}
test();
test();
is transformed to
function test() {
if (window.doesntExist) var callback = !0;
return () => {
console.log("ng");
};
}
test(), test();
. But this changes the behavior.
Originally reported at vitejs/vite#22933
is transformed to
. But this changes the behavior.
Originally reported at vitejs/vite#22933