Never Publish Malarkey

    babel-plugin-remove-decorator

    1.0.0 • Public • Published

    babel-plugin-remove-decorator

    Babel 6 plugin that removes all decorators, useful when running unit tests

    Removes decorators from top level classes, for example:

    Before:

    @MyDecorator
    class Content {}

    After:

    class Content {}

    I'll happily accept PRs for any further improvements to the project!

    Usage

    $ npm install --save-dev babel-plugin-remove-decorator
    $ yarn add --dev babel-plugin-remove-decorator

    Add to your babelrc:

    {
      "env": {
        "test": {
          "plugins": ["remove-decorator"]
        }
      }
    }

    Keywords

    none

    Install

    npm i babel-plugin-remove-decorator

    DownloadsWeekly Downloads

    61

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • ldabiralai