chensenlai 10988628a0 语音房项目初始化 | 5 years ago | |
---|---|---|
.. | ||
lib | 5 years ago | |
.npmignore | 5 years ago | |
README.md | 5 years ago | |
package.json | 5 years ago |
Compile class and object decorators to ES5
$ npm install babel-plugin-transform-decorators
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-decorators"]
}
$ babel --plugins transform-decorators script.js
require("babel-core").transform("code", {
plugins: ["transform-decorators"]
});