babel/packages/babel-generator
Justin Ridgewell f49234aa69
Add sourcemap markings for each line of a string (#12086)
* Add sourcemap markings for each line of a string

Fixes https://github.com/babel/babel/issues/12083

* Fix for multiple newlines

* Optimize with indexOf

* Comment explaining newline search
2020-09-22 21:36:21 -04:00
..
2020-09-03 11:11:11 -04:00

@babel/generator

Turns an AST into code.

See our website @babel/generator for more information or the issues associated with this package.

Install

Using npm:

npm install --save-dev @babel/generator

or using yarn:

yarn add @babel/generator --dev