babel-plugin-dead-code-elimination

Eliminate dead code

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-dead-code-elimination
1.0.27 years ago7 years agoMinified + gzip package size for babel-plugin-dead-code-elimination in KB

Readme

babel-plugin-dead-code-elimination
Eliminate dead code

Installation

$ npm install babel-plugin-dead-code-elimination

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["dead-code-elimination"]
}

Via CLI

$ babel --plugins dead-code-elimination script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["dead-code-elimination"]
});