Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

babel-plugin-dead-code-elimination

1.0.2 • Public • Published

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"]
});

Keywords

install

npm i babel-plugin-dead-code-elimination

Downloadsweekly downloads

175,696

version

1.0.2

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar