Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-plugin-syntax-decorators

babel2.6mMIT6.13.0

Allow parsing of decorators

babel-plugin

readme

babel-plugin-syntax-decorators

Allow parsing of decorators.

Installation

$ npm install 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"]
});