-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
💻
- Would you like to work on a fix?
How are you using Babel?
babel-loader (webpack)
Input code
for (let i = 1; i < 3; i++) {
if (i === 1) {
function test() {
return true;
}
} else {
console.log(test()); // true
}
}====>
var _loop = function _loop() {
if (i === 1) {
var _test = function _test() {
return true;
};
} else {
console.log(test()); // error
}
};
for (var i = 1; i < 3; i++) {
_loop();
}Configuration file name
No response
Configuration
No response
Current and expected behavior
1
Environment
1
Possible solution
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels