Babel 6 fork of babel-plugin-dead-code-elimination.
Incorporates fixes from achicu/babel-plugin-dead-code-elimination.
npm install --save-dev babel-plugin-transform-dead-code-elimination
.babelrc:
{
"plugins": [
"transform-dead-code-elimination"
]
}
Or, with options (note: experimentalInlining
will almost definitely break your code):
{
"plugins": [
["transform-dead-code-elimination", {
"experimentalInlining": true
}]
]
}