Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
$ npm install babel-plugin-runtime
.babelrc
{
"plugins": ["runtime"]
}
$ babel --plugins runtime script.js
require("babel-core").transform("code", {
plugins: ["runtime"]
});