When using the fromString option to minify via the API there is no way to specify the filename to be used in the source-map and it always get's set to "?". There needs to be a fromStringFile (or similar) option added that enables the user to specify the filename of the source that is being passed in via the string so that source-maps can use this in their sources array.