$ npm install babel-plugin-syntax-decorators
Allow parsing of decorators.
$ npm install babel-plugin-syntax-decorators
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-decorators"]
}
$ babel --plugins syntax-decorators script.js
require("babel-core").transform("code", {
plugins: ["syntax-decorators"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE