chensenlai 10988628a0 语音房项目初始化 | 5 jaren geleden | |
---|---|---|
.. | ||
lib | 5 jaren geleden | |
.npmignore | 5 jaren geleden | |
README.md | 5 jaren geleden | |
package.json | 5 jaren geleden |
$ npm install babel-plugin-transform-class-constructor-call
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-class-constructor-call"]
}
$ babel --plugins transform-class-constructor-call script.js
require("babel-core").transform("code", {
plugins: ["transform-class-constructor-call"]
});