To include it you will need to require it at the top of the entry point to your application.
If you are using ES6's
import syntax in your application's entry point, you
should instead import at the top of the entry point to ensure it is loaded first:
All subsequent files required by node with the extensions
.js will be transformed by Babel. The polyfill specified in polyfill is also automatically required.
Not suitable for libraries
The require hook automatically hooks itself into all node requires. This will pollute the global scope and introduce conflicts. Because of this it's not suitable for libraries, if however you're writing an application then it's completely fine to use.
Not meant for production use
The require hook is primarily recommended for simple cases.
For full documentation on the Babel require hook see the usage docs.