3rd implementation strategy of active expressions, via a babel transformation
Live editable at http://astexplorer.net/#/h1zFzvogmm/20
Transforms
something
to
something else
$ npm install babel-plugin-aexpr-source-transformation
.babelrc
{
"plugins": ["aexpr-source-transformation"]
}
$ babel --plugins aexpr-source-transformation script.js
require("babel-core").transform("code", {
plugins: ["aexpr-source-transformation"]
});