[Pkg-javascript-commits] [uglifyjs] 73/491: export `TreeTransformer` (#1950)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:23 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit cb45886512a04697025ca901670e63063064a945
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Tue May 16 19:59:05 2017 +0800

    export `TreeTransformer` (#1950)
    
    - link to existing documentation on `TreeWalker` & `TreeTransformer`
    - fix Travis build failures
    
    fixes #1949
---
 .travis.yml      | 1 -
 README.md        | 6 ++++++
 tools/exports.js | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 06929a3..cdee430 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,4 @@
 language: node_js
-before_install: "npm install -g npm"
 node_js:
     - "0.10"
     - "0.12"
diff --git a/README.md b/README.md
index adae579..52bf426 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/tools/exports.js b/tools/exports.js
index 0ffff65..e08296f 100644
--- a/tools/exports.js
+++ b/tools/exports.js
@@ -1,4 +1,5 @@
 exports["Dictionary"] = Dictionary;
 exports["TreeWalker"] = TreeWalker;
+exports["TreeTransformer"] = TreeTransformer;
 exports["minify"] = minify;
 exports["_push_uniq"] = push_uniq;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list