babel/packages/babel-register
Maxime Thirouin 90f3f9049f babel-register: update source-map-support to latest (#4577)
This allows in some case when you use other modules that use this source-map-support lib to get only a single version at the root of node_modules. For example, this can prevent issues when requiring using webpack Banner plugin (compiled code is not always requiring dependencies as you would expect).
2016-09-27 14:55:35 +02: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.