Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 461 Bytes

File metadata and controls

35 lines (24 loc) · 461 Bytes

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