escodegen
escodegen copied to clipboard
ECMAScript code generator
I noticed that the option to preserve blank lines (`preserveBlankLines` in combination with `sourceCode`) is not a part of the [API](https://github.com/estools/escodegen/wiki/API). Could this be added? I found this option through...
There is a comment about preventing including the source-map lib when in a browser build. ``` // And prevent from including source-map by browserify ``` Two things: a) the source-map...
Hello, my name is Bhargava and I am a student. I am trying to use esparse and escodegen in the browser directly to do a simple function rewriting so that...
See https://github.com/benjamn/recast/issues/416 Same issue with `escodegen.generate(ast)`
Hi all, I'm trying to introduce new syntax to JavaScript and I've been able to modify esprima by adding some nodes of my own. Esprima is able to parse the...
According to #228 it should be possible to use `import` statements via Esprima 2.x in the current master. Unfortunately, I still got the above error when running: ``` javascript var...
Small example demonstrating the problem: ``` js var ast = esprime.parse('code;/*comment*/', { range: true, tokens: true, comment: true }); ast.body[0] = { "type": "ExpressionStatement", "expression": { "type": "Identifier", "name": "modifiedCode"...
At line 1714, there is a potential bug, if a Program block has a child with no range attached. This can cause an exception: ``` TypeError: Cannot read property '0'...
It would be nice if `escodegen` will have option which will work similar to this package: https://github.com/nolanlawson/optimize-js Why? No additional dependencies is required, no need to iterate through AST-tree twice,...
Hi! I've run into a case where escodegen never seems to complete the formatting of a program. It happens with a combination of a very long line (a minified JavaScript...