UglifyJS/lib
aleclarson 2aa8b944f6 fix: invalid filenames in sources of source maps
When the parsed files have no associated filenames (eg: a string or array of strings was passed to the `minify` function), the `sources` array of the generated sourcemap must only contain null values.

Currently, it contains the stringified indexes of the array. For example, passing a string to `minify` results in a `sources` array of `["0"]`, which breaks the sourcemap.

Also, this PR adds the `sourceMap.json` option. When explicitly set to `false`, the sourcemap is *not* stringified.
2018-06-08 15:44:35 -04:00
..
ast.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
compress.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
minify.js fix: invalid filenames in sources of source maps 2018-06-08 15:44:35 -04:00
mozilla-ast.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
output.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
parse.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
propmangle.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
scope.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
sourcemap.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
transform.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00
utils.js general clean-ups (#3175) 2018-06-06 17:50:56 +08:00