Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 624 Bytes

File metadata and controls

28 lines (19 loc) · 624 Bytes

babel-plugin-minify-dead-code-elimination bug demo

  1. npm install
  2. npm run build
  3. node minimal.js
  4. Open pass.html in a browser.
  5. Open fail.html in a browser.
  6. Open fail-edit.html in a browser.

Tip: To see the diff between input and output:

git diff --no-index jquery.input.js jquery.output.js
git diff --no-index jquery.input.js jquery.output-edit.js

You can see the output of those commands here:

Expected behavior (before minify)

pass.gif

Actual behavior (after minify)

fail.gif