export TreeTransformer (#1950)

- link to existing documentation on `TreeWalker` & `TreeTransformer`
- fix Travis build failures

fixes #1949
This commit is contained in:
Alex Lam S.L
2017-05-16 19:59:05 +08:00
committed by GitHub
parent 050474ab44
commit cb45886512
3 changed files with 7 additions and 1 deletions

View File

@@ -780,6 +780,12 @@ var result = UglifyJS.minify(ast, {
// result.code contains the minified code in string form.
```
### Working with Uglify AST
Transversal and transformation of the native AST can be performed through
[`TreeWalker`](http://lisperator.net/uglifyjs/walk) and
[`TreeTransformer`](http://lisperator.net/uglifyjs/transform) respectively.
### ESTree / SpiderMonkey AST
UglifyJS has its own abstract syntax tree format; for