aboutsummaryrefslogtreecommitdiff
path: root/lib/sourcemap.js
AgeCommit message (Expand)Author
2012-10-02line numbers start at 1Mihai Bazon
2012-10-02"use strict";Mihai Bazon
2012-09-24Support input source map...This is useful while compressing generated code; for example compressing JS compiled by CoffeeScript (assuming you got a source map): uglifyjs2 --in-source-map generated.js.map \ --source-map uglified.js.map \ -o uglified.js The above assumes you have a "generated.js.map" file which is the source mapping between your CoffeeScript and the generated.js (compiled output from CoffeeScript). The name of the input file is not present in this example; it will be fetched from the source map (but it can be passed manually too). The output will be in "uglified.js" and the output map "uglified.js.map" will actually map to the original CoffeeScript code, rather than to generated.js. Mihai Bazon
2012-09-21better support for multiple input files:...- use a single AST_Toplevel node for all files - keep original source filename in the tokens Mihai Bazon
2012-08-29started support for generating source maps (WIP)...plugged in @fitzgen's source-map library Mihai Bazon