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