chensenlai 10988628a0 语音房项目初始化 | 5 gadi atpakaļ | |
---|---|---|
.. | ||
lib | 5 gadi atpakaļ | |
.npmignore | 5 gadi atpakaļ | |
README.md | 5 gadi atpakaļ | |
package.json | 5 gadi atpakaļ |
$ 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"]
});