Releases: erikdesjardins/babel-plugin-transform-dead-code-elimination
Releases · erikdesjardins/babel-plugin-transform-dead-code-elimination
v2.2.2
v2.2.1
Hoisted async functions are no longer incorrectly eliminated (when transform-async-to-generator is used):
function foo() {
return bar();
async function bar() {} // <- this is no longer eliminated
}v2.2.0
Unreachable code elimination and if-statement folding work better together:
function foo() {
if (true) {
return;
}
doSomething(); // <- this is now properly eliminated
}