$ npm install babel-plugin-transform-switch-with
.babelrc
{
"plugins": ["transform-switch-with"]
}
$ babel --plugins transform-switch-with script.js
require("babel-core").transform("code", {
plugins: ["transform-switch-with"]
});
$ npm install babel-plugin-transform-switch-with
.babelrc
{
"plugins": ["transform-switch-with"]
}
$ babel --plugins transform-switch-with script.js
require("babel-core").transform("code", {
plugins: ["transform-switch-with"]
});