Allow parsing of decorators.
$ npm install babel-plugin-syntax-decorators
.babelrc
{
"plugins": ["syntax-decorators"]
}
$ babel --plugins syntax-decorators script.js
require("babel-core").transform("code", {
plugins: ["syntax-decorators"]
});
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Allow parsing of decorators.
$ npm install babel-plugin-syntax-decorators
.babelrc
{
"plugins": ["syntax-decorators"]
}
$ babel --plugins syntax-decorators script.js
require("babel-core").transform("code", {
plugins: ["syntax-decorators"]
});