1.0.0 • Published 4 years ago

remove-class-declaration-decorator v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Babel 6 plugin that removes class declaration 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 remove-class-declaration-decorator
$ yarn add --dev remove-class-declaration-decorator

Add to your babelrc:

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