Compile do expressions to ES5
$ npm install babel-plugin-transform-do-expressions
.babelrc
{
"plugins": ["transform-do-expressions"]
}
$ babel --plugins transform-do-expressions script.js
require("babel-core").transform("code", {
plugins: ["transform-do-expressions"]
});