babel/packages/babel-register
Amjad Masad 12ee11a0a4 Revert "Remove Flow annotations and pragmas"
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
..
2016-02-29 16:12:12 -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.