Skip to content

Releases: erikdesjardins/babel-plugin-transform-dead-code-elimination

v2.2.2

15 Nov 19:27

Choose a tag to compare

Fix a crash on unused repeated var or function declarations (#24; thanks @seeekr):

function foo() {
  var abc = 1;
  var abc = 2; // <- this no longer causes a crash
}

v2.2.1

17 Sep 04:23

Choose a tag to compare

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

24 Aug 03:25

Choose a tag to compare

Unreachable code elimination and if-statement folding work better together:

function foo() {
  if (true) {
    return;
  }

  doSomething(); // <- this is now properly eliminated
}

v2.1.0

27 Jul 17:38

Choose a tag to compare

  • #18: Eliminate dead LogicalOperators (thanks @nicks)