node package manager

babel-plugin-transform-decorators

Compile class and object decorators to ES5

babel-plugin-transform-decorators

Compile class and object decorators to ES5

Installation

$ npm install babel-plugin-transform-decorators

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

$ babel --plugins transform-decorators script.js

Via Node API

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