:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
4.39k
stars
225
forks
source link
After executing my plug-in after the minify-dead-code-elimination, I still get the deleted dead code in my plug-in #1014
Open
951565664 opened 3 years ago
After executing my plug-in after the minify-dead-code-elimination, I still get the deleted dead code in my plug-in
To Reproduce
Minimal code to reproduce the bug
babel.config.js
src/index.js
Actual Output
Print the result of console.log
so
console.log(strA)
in theif(false)
code block is not deletedExpected Output
When my plug-in is behind the deadcode plug-in, my plug-in should not get the dead code that was removed
"babel-plugin-minify-dead-code-elimination": "^0.5.1" "@babel/core": "7.14.6",