babel-plugin-syntax-do-expressions
Installation
npm install --save-dev babel-plugin-syntax-do-expressions
Usage
.babelrc
(Recommended)
Via .babelrc
{
"plugins": ["syntax-do-expressions"]
}
Via CLI
babel --plugins syntax-do-expressions script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-do-expressions"]
});