add source mappings for more node types; started CLI utility

This commit is contained in:
Mihai Bazon
2012-09-02 14:32:00 +03:00
parent 24bfd55a22
commit f2f370cee3
4 changed files with 156 additions and 3 deletions

View File

@@ -28,8 +28,10 @@ function do_file(file) {
// generate source into the output stream
// first reset the current file name in the source map.
map.set_source(file);
ast.print(output);
UglifyJS.time_it("generate", function(){
map.set_source(file);
ast.print(output);
});
};
files.forEach(do_file);

View File

@@ -22,7 +22,7 @@ time_it("scope", function(){
ast.figure_out_scope();
});
ast.scope_warnings();
// ast.scope_warnings();
time_it("mangle", function(){
ast.mangle_names();