chensenlai 10988628a0 语音房项目初始化 | лет назад: 5 | |
---|---|---|
.. | ||
lib | лет назад: 5 | |
.npmignore | лет назад: 5 | |
README.md | лет назад: 5 | |
package.json | лет назад: 5 |
$ npm install babel-plugin-transform-class-properties
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-class-properties"]
}
$ babel --plugins transform-class-properties script.js
require("babel-core").transform("code", {
plugins: ["transform-class-properties"]
});