add source mappings for more node types; started CLI utility
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user