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


#1

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


#2

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


#3

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.