Skip to content

mhelvens/babel-plugin-remove-decorator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-remove-decorator

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

At the moment this only removes decorators from top level classes, for example:

Before:

@MyDecorator
class Content {}

After:

class Content {}

I'll happily accept PRs that add support for removing decorators on methods (or any other improvements)

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"]
    }
  }
}

About

Babel 6 plugin that removes class decorators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%