You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importstrAfrom'./a.js'console.log('b')if(false){console.log(strA)}my-plugin.js```jsmodule.exports=function(babel){return{visitor: {Identifier(path){const{ name }=path.nodename==='strA'&&console.log(path.node)}}};};
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",
The text was updated successfully, but these errors were encountered: