$ cnpm install babel-plugin-eval
Compile eval calls with string literals
$ npm install babel-plugin-eval
.babelrc
(Recommended).babelrc
{
"plugins": ["eval"]
}
$ babel --plugins eval script.js
require("babel-core").transform("code", {
plugins: ["eval"]
});
Copyright 2013 - present © cnpmjs.org