How to use Atom's 'use babel'; pragma in regular npm packages


Has anyone managed to port or use Atom’s use babel; approach in a regular npm package ?


Have you taken a look at the babel-register system?


You know I took a look at that shortly after I made a post, and found it quite amazing.
Basically just create an entrypoint with babel register via require, then the rest of the application can use babel syntax correct.