Rather than repeating the original location when we exit a node, we need to restore the previous parent’s original line location, since the source map format denotes the start location.
babel-cli
Babel command line.
Install
$ npm install --global babel-cli
Usage
$ babel script.js
For more in depth documentation see: http://babeljs.io/docs/usage/cli/