Syntax decorators

Syntax only

This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-decorators.

This plugin allows Babel to parse decorators.

Installation

$ npm install babel-plugin-syntax-decorators

Usage

Add the following line to your .babelrc file:

{
  "plugins": ["syntax-decorators"]
}