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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i babel-plugin-remove-symbol-description

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kentor