I've been using Uglify to generate source maps via the API, such as:
var result = uglify.minify(filename, { outSourceMap: mapFilename });
When I do this, the resulting sourcemap had the following errors:
- The
file field is mapFilename instead of filename
- The filename in
sources field contains extra path information, which confuses Dev tools (should have the path info as relative to file only)
I've been using Uglify to generate source maps via the API, such as:
When I do this, the resulting sourcemap had the following errors:
filefield ismapFilenameinstead offilenamesourcesfield contains extra path information, which confuses Dev tools (should have the path info as relative tofileonly)