{"id":16048923,"url":"https://github.com/devongovett/babel-plugin-transform-async-super","last_synced_at":"2025-03-18T04:31:03.086Z","repository":{"id":66053664,"uuid":"121198453","full_name":"devongovett/babel-plugin-transform-async-super","owner":"devongovett","description":"Transform super calls inside async class methods for Node 6","archived":false,"fork":false,"pushed_at":"2018-02-12T04:08:21.000Z","size":15,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T07:02:08.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devongovett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-12T04:07:45.000Z","updated_at":"2019-06-24T10:21:54.000Z","dependencies_parsed_at":"2023-07-26T00:02:23.282Z","dependency_job_id":null,"html_url":"https://github.com/devongovett/babel-plugin-transform-async-super","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"05dccaf69d745960b44c4f5e1fac3911f59300f4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbabel-plugin-transform-async-super","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbabel-plugin-transform-async-super/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbabel-plugin-transform-async-super/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fbabel-plugin-transform-async-super/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/babel-plugin-transform-async-super/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902271,"owners_count":20366259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T00:11:17.308Z","updated_at":"2025-03-18T04:31:02.737Z","avatar_url":"https://github.com/devongovett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-transform-async-super\n\nThis is a Babel plugin that transforms `super` calls inside async functions in order to work around a\n[Babel bug](https://github.com/babel/babel/issues/3930) when compiling async functions to generators,\nbut not ES6 classes. This is an issue when compiling for Node 6, for example, which supports classes\nbut not async functions. This plugin only compiles super calls inside async functions, and not elsewhere.\n\nThe Babel bug mentioned above is fixed in Babel 7 which is in beta. This plugin is therefore only\nuseful when you need to use Babel 6.\n\nAlong side babel-plugin-transform-async-to-generator, it transforms this:\n\n```javascript\nclass Test extends Foo {\n  async test(arg) {\n    return await super.test(arg) + 2;\n  }\n}\n```\n\ninto this:\n\n```javascript\nclass Test extends Foo {\n  test(arg) {\n    var _this = this;\n\n    return _asyncToGenerator(function* () {\n      return (yield Foo.prototype.test.call(_this, arg)) + 2;\n    })();\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fbabel-plugin-transform-async-super","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fbabel-plugin-transform-async-super","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fbabel-plugin-transform-async-super/lists"}