1.0.1 • Published 8 years ago

babel-plugin-remove-symbol-description v1.0.1

Weekly downloads
25
License
MIT
Repository
github
Last release
8 years ago

Remove Symbol Description

Build Status npm

A Babel plugin to remove Symbol descriptions.

Note: Babel 6 is supported in version 1.0.1+. Keep using version 0.0.1 for Babel 5 support.

What?

In:

Symbol('some description');

var someIdentifier = 'some description';
Symbol(someIdentifier);

Out:

Symbol();

var someIdentifier = 'some description';
Symbol();

Why?

Symbol descriptions are useful in development for debugging, but they can safely be removed in production to save bytes.

Installation

npm install -D babel-plugin-remove-symbol-description