export TreeTransformer (#1950)
- link to existing documentation on `TreeWalker` & `TreeTransformer` - fix Travis build failures fixes #1949
This commit is contained in:
parent
050474ab44
commit
cb45886512
|
|
@ -1,5 +1,4 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
before_install: "npm install -g npm"
|
|
||||||
node_js:
|
node_js:
|
||||||
- "0.10"
|
- "0.10"
|
||||||
- "0.12"
|
- "0.12"
|
||||||
|
|
|
||||||
|
|
@ -780,6 +780,12 @@ var result = UglifyJS.minify(ast, {
|
||||||
// result.code contains the minified code in string form.
|
// 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
|
### ESTree / SpiderMonkey AST
|
||||||
|
|
||||||
UglifyJS has its own abstract syntax tree format; for
|
UglifyJS has its own abstract syntax tree format; for
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
exports["Dictionary"] = Dictionary;
|
exports["Dictionary"] = Dictionary;
|
||||||
exports["TreeWalker"] = TreeWalker;
|
exports["TreeWalker"] = TreeWalker;
|
||||||
|
exports["TreeTransformer"] = TreeTransformer;
|
||||||
exports["minify"] = minify;
|
exports["minify"] = minify;
|
||||||
exports["_push_uniq"] = push_uniq;
|
exports["_push_uniq"] = push_uniq;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user