Skip to content

Latest commit

 

History

History
 
 

babel-register

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

babel-register

The require hook will bind itself to node's require and automatically compile files on the fly.

Install

$ npm install babel-register

Usage

require("babel-register");

All subsequent files required by node with the extensions .es6, .es, .jsx and .js will be transformed by Babel.

See documentation for details.