babel/packages/babel-register
Simen Bekkhus 9c2794dc85 Replace path-exists with fs.existsSync (#4731)
It's not deprecated anymore, see nodejs/node#8364
2016-10-17 14:31:49 -04:00
..
2016-03-08 22:33:23 -05:00
2016-02-09 18:48:25 +08:00

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.