Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-transform-dead-code-elimination

Babel 6 fork of babel-plugin-dead-code-elimination.

Incorporates fixes from achicu/babel-plugin-dead-code-elimination.

Installation

npm install --save-dev babel-plugin-transform-dead-code-elimination

Usage

.babelrc:

{
  "plugins": [
    "transform-dead-code-elimination"
  ]
}

Or, with options (note: experimentalInlining will almost definitely break your code):

{
  "plugins": [
    ["transform-dead-code-elimination", {
      "experimentalInlining": true
    }]
  ]
}