Syntax decorators

Decorators are not currently supported

See transform-decorators for more information.

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 --save-dev babel-plugin-syntax-decorators

Usage

.babelrc

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

Via CLI

babel --plugins syntax-decorators script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-decorators"]
});

© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-decorators/