babel-plugin-syntax-decorators
v6.13.0
Published
Allow parsing of decorators
Downloads
4,153,883
Keywords
Readme
babel-plugin-syntax-decorators
Allow parsing of decorators.
Installation
$ npm install babel-plugin-syntax-decorators
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["syntax-decorators"]
}
Via CLI
$ babel --plugins syntax-decorators script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-decorators"]
});