def dart_web_application_outputs(output_js, dump_info, emit_tar, script_file):
    """Returns the expected output map for dart_web_application."""
    output_js = output_js or "%s.js" % script_file.name
    outputs = {
        "js": output_js,
        "deps_file": "%s.deps" % output_js,
        "sourcemap": "%s.map" % output_js,
        "packages_file": "%{name}.packages",
    }
    if dump_info:
        outputs["info_json"] = "%s.info.json" % output_js
    if emit_tar:
        outputs["tar"] = "%s.tar" % output_js
    return outputs