One of the ways you can use Babel is through the require hook. The require hook will bind itself to node’s
require and automatically compile files on the fly. This is equivalent to CoffeeScript’s coffee-script/register.
This is a companion discussion topic for the original entry at https://babeljs.io/docs/core-packages/babel-register