play with babel plugin
In
// input code
Out
"use strict";
// output code
$ npm install babel-plugin-play
.babelrc
{
"plugins": ["play"]
}
$ babel --plugins play script.js
require("babel-core").transform("code", {
plugins: ["play"]
});
Play with babel plugin
play with babel plugin
In
// input code
Out
"use strict";
// output code
$ npm install babel-plugin-play
.babelrc
{
"plugins": ["play"]
}
$ babel --plugins play script.js
require("babel-core").transform("code", {
plugins: ["play"]
});
Play with babel plugin