babel-plugin-remove-symbol-description

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i babel-plugin-remove-symbol-description

Weekly Downloads

11

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kentor