{"id":13672899,"url":"https://github.com/kentcdodds/babel-plugin-codegen","last_synced_at":"2025-10-07T10:21:22.100Z","repository":{"id":45237741,"uuid":"100160014","full_name":"kentcdodds/babel-plugin-codegen","owner":"kentcdodds","description":"💥 Generate code at build-time","archived":false,"fork":false,"pushed_at":"2023-04-26T02:59:54.000Z","size":124,"stargazers_count":348,"open_issues_count":9,"forks_count":30,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T00:34:32.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/babel-plugin-codegen","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentcdodds.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-13T07:05:21.000Z","updated_at":"2024-10-30T15:12:36.000Z","dependencies_parsed_at":"2024-01-10T21:05:16.915Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/babel-plugin-codegen","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-plugin-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-plugin-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-plugin-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-plugin-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/babel-plugin-codegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247760289,"owners_count":20991457,"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-08-02T09:01:55.851Z","updated_at":"2025-10-07T10:21:17.046Z","avatar_url":"https://github.com/kentcdodds.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003ebabel-plugin-codegen 💥\u003c/h1\u003e\n\n\u003cp\u003eGenerate code at build-time\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n\u003c!-- prettier-ignore-start --\u003e\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![version][version-badge]][package]\n[![downloads][downloads-badge]][npmtrends]\n[![MIT License][license-badge]][license]\n[![All Contributors][all-contributors-badge]](#contributors-)\n[![PRs Welcome][prs-badge]][prs]\n[![Code of Conduct][coc-badge]][coc]\n[![Babel Macro][macros-badge]][babel-plugin-macros]\n\u003c!-- prettier-ignore-end --\u003e\n\n## The problem\n\nThe applications of this plugin are wide, so it's kinda hard to sum it up, but\nbasically my use case was I needed to add a bunch of named exports to\n[`glamorous`][glamorous] (one for every DOM node type) and I didn't want to\nmaintain the exports in my source file. So someone created a post-build script\nto concatenate them to the end of the file. I built this plugin so I could do\nthat without having an ad-hoc post-build script.\n\n\u003e Read\n\u003e [\"Make maintainable workarounds with codegen 💥\"](https://blog.kentcdodds.com/make-maintainable-workarounds-with-codegen-d34163a09c13)\n\u003e for more inspiration\n\n## This solution\n\nThis plugin allows you to generate code at build-time. Any code that runs\nsynchronously in node can be used to generate a string of code and that string\nwill be inserted in place of where your usage appears.\n\nIt works by accepting your code string (or module when using the `// @codegen`\ncomment directive) and requiring it as a module. Then it takes whatever the\nexport was (which should be a string) and converts that string to an AST node\nand swaps your usage node with the new AST node.\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Template Tag](#template-tag)\n  - [import comment](#import-comment)\n  - [codegen.require](#codegenrequire)\n  - [codegen file comment (`// @codegen`)](#codegen-file-comment--codegen)\n- [Configure with Babel](#configure-with-babel)\n  - [Via `.babelrc` (Recommended)](#via-babelrc-recommended)\n  - [Via CLI](#via-cli)\n  - [Via Node API](#via-node-api)\n- [Use with `babel-plugin-macros`](#use-with-babel-plugin-macros)\n  - [APIs not supported by the macro](#apis-not-supported-by-the-macro)\n- [Caveats](#caveats)\n- [Examples](#examples)\n- [Inspiration](#inspiration)\n- [Other Solutions](#other-solutions)\n- [Issues](#issues)\n  - [🐛 Bugs](#-bugs)\n  - [💡 Feature Requests](#-feature-requests)\n- [Contributors ✨](#contributors-)\n- [LICENSE](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and\nshould be installed as one of your project's `devDependencies`:\n\n```\nnpm install --save-dev babel-plugin-codegen\n```\n\n## Usage\n\nThis package works in a very similar way to [`babel-plugin-preval`][preval]\nexcept in this case instead of any value being replaced in the code, you're\nactually replacing it with code (giving you a little bit more power in exchange\nfor potentially being a little more confusing).\n\nImportant notes:\n\n1.  All code run by `codegen` is _not_ run in a sandboxed environment\n2.  All code _must_ run synchronously.\n\n\u003e You may like to watch\n\u003e [this YouTube video](https://www.youtube.com/watch?v=1queadQ0048\u0026list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u)\n\u003e to get an idea of what codegen is and how it can be used.\n\n### Template Tag\n\n**Before**:\n\n```javascript\ncodegen`\n  const fs = require('fs')\n  module.exports = fs.readFileSync(require.resolve('./some-code.js'), 'utf8')\n`\n```\n\n**After** (assuming `some-code.js` contains the text: `var x = 'Hello world!'`):\n\n```javascript\nvar x = 'Hello world!'\n```\n\nHere you can see the difference between this plugin and\n[babel-plugin-preval](https://github.com/kentcdodds/babel-plugin-preval), which\nwould output the content of `some-code.js` as a string instead:\n\n```javascript\n\"var x = 'Hello world!'\"\n\n```\n\n`codegen` can also handle _some_ simple dynamic values as well:\n\n**Before**:\n\n```javascript\nconst three = 3\nconst x = codegen`module.exports = '${three}'`\n```\n\n**After**:\n\n```javascript\nconst three = 3\nconst x = 3\n```\n\n### import comment\n\n**Before**:\n\n```javascript\nimport /* codegen */ './assign-one.js'\n```\n\n**After** (`assign-one.js` is: `module.exports = 'var x = 1'`):\n\n```javascript\nvar x = 1\n```\n\nYou can also provide arguments! In this case, the module you import should\nexport a function which accepts those arguments and returns a string.\n\n**Before**:\n\n```javascript\nimport /* codegen(3) */ './assign-identity'\n```\n\n**After** (`assign-identity.js` is:\n`module.exports = input =\u003e 'var x = ' + JSON.stringify(input) + ';'`):\n\n```javascript\nvar x = 3\n```\n\n### codegen.require\n\n**Before**:\n\n```javascript\ncodegen.require('./es6-identity', 3)\n```\n\n**After** (`es6-identity.js` is:\n`export default input =\u003e 'var x = ' + JSON.stringify(input) + ';'`):\n\n```javascript\nvar x = 3\n```\n\n### codegen file comment (`// @codegen`)\n\nUsing the codegen file comment will update a whole file to be evaluated down to\nan export.\n\nWhereas the above usages (assignment/import/require) will only codegen the scope\nof the assignment or file being imported.\n\nHere is an example of painless `index.js` which auto import same depth js files\nat compile time.\n\n**Before**:\n\n```javascript\n// @codegen\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst regx_JSFiles = /\\.(es6|js|es|jsx|mjs|ts)$/;\nconst name = require(\"path\").basename(__filename);\n\nmodule.exports = fs.readdirSync(__dirname).reduce((acc, cur) =\u003e {\n  if (name !== cur \u0026\u0026 regx_JSFiles.test(cur)) {\n    acc += `export * from './${cur.replace(regx_JSFiles, \"\")}'\\n`;\n  }\n  return acc;\n}, \"\");\n```\n\n**After**:\n\n```javascript\nexport * from './apple';\nexport * from './orange';\nexport * from './pear';\n```\n\n## Configure with Babel\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"codegen\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins codegen script.js\n```\n\n### Via Node API\n\n```javascript\nrequire('babel-core').transform('code', {\n  plugins: ['codegen'],\n})\n```\n\n## Use with `babel-plugin-macros`\n\nOnce you've\n[configured `babel-plugin-macros`](https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md)\nyou can import/require the codegen macro at `babel-plugin-codegen/macro`. For\nexample:\n\n```javascript\nimport codegen from 'babel-plugin-codegen/macro'\n\ncodegen`module.exports = ['a', 'b', 'c'].map(l =\u003e 'export const ' + l + ' = ' + JSON.stringify(l)).join(';')`\n\n      ↓ ↓ ↓ ↓ ↓ ↓\n\nexport const a = \"a\";\nexport const b = \"b\";\nexport const c = \"c\";\n```\n\n### APIs not supported by the macro\n\n- [file comment (`// @codegen`)](#codegen-file-comment--codegen)\n- [import comment](#import-comment)\n\n\u003e You could also use [`codegen.macro`][codegen.macro] if you'd prefer to type\n\u003e less 😀\n\n## Caveats\n\nOne really important thing to note here is that it doesn't work by simply\nreplacing your code with whatever string you export. Instead it replaces it at\nthe AST level. This means that the resulting code should operate the same, but\nthe format of the code could be entirely different. Most of the time this should\nnot matter, but if it matters to you, please feel free to contribute back if you\nfeel like you could make it work!\n\n## Examples\n\n- [Using babel macros with React Native](https://bit.ly/babel-codegen): A\n  practical use case for solving an i18n problem using\n  [`codegen.macro`](https://www.npmjs.com/package/codegen.macro)\n\n## Inspiration\n\nI built this to solve a problem I was experiencing with [glamorous][glamorous].\nIt's heavily based on my work in [babel-plugin-preval][preval].\n\n## Other Solutions\n\nI'm not aware of any, if you are please [make a pull request][prs] and add it\nhere!\n\n## Issues\n\n_Looking to contribute? Look for the [Good First Issue][good-first-issue]\nlabel._\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**][bugs]\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features. Vote on feature requests by adding\na 👍. This helps maintainers prioritize what to work on.\n\n[**See Feature Requests**][requests]\n\n## Contributors ✨\n\nThanks goes to these people ([emoji key][emojis]):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://kentcdodds.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1500684?v=3?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKent C. Dodds\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=kentcdodds\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=kentcdodds\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#infra-kentcdodds\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=kentcdodds\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mlrawlings\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/1958812?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMichael Rawlings\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=mlrawlings\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=mlrawlings\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=mlrawlings\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://jan.cologne\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/5230863?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJan Willem Henckel\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=djfarly\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=djfarly\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=djfarly\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://twitter.com/geekykaran\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/1824298?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKaran Thakkar\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=karanjthakkar\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://stackshare.io/jdorfman/decisions\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/398230?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJustin Dorfman\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#fundingFinding-jdorfman\" title=\"Funding Finding\"\u003e🔍\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://michaeldeboey.be\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/6643991?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMichaël De Boey\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=MichaelDeBoey\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://silvenon.com\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/471278?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatija Marohnić\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=silvenon\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://twitter.com/minh_ngvyen\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/2852660?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMinh Nguyen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=NMinhNguyen\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=NMinhNguyen\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/calebeby\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/13206945?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCaleb Eby\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=calebeby\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/loynoir\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/78727408?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eloynoir\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=loynoir\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=loynoir\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/gabalafou\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/317883?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003egabalafou\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/kentcdodds/babel-plugin-codegen/commits?author=gabalafou\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors][all-contributors] specification.\nContributions of any kind welcome!\n\n## LICENSE\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n[npm]: https://www.npmjs.com\n[node]: https://nodejs.org\n[build-badge]: https://img.shields.io/github/workflow/status/kentcdodds/babel-plugin-codegen/validate?logo=github\u0026style=flat-square\n[build]: https://github.com/kentcdodds/babel-plugin-codegen/actions?query=workflow%3Avalidate\n[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/babel-plugin-codegen.svg?style=flat-square\n[coverage]: https://codecov.io/github/kentcdodds/babel-plugin-codegen\n[version-badge]: https://img.shields.io/npm/v/babel-plugin-codegen.svg?style=flat-square\n[package]: https://www.npmjs.com/package/babel-plugin-codegen\n[downloads-badge]: https://img.shields.io/npm/dm/babel-plugin-codegen.svg?style=flat-square\n[npmtrends]: https://www.npmtrends.com/babel-plugin-codegen\n[license-badge]: https://img.shields.io/npm/l/babel-plugin-codegen.svg?style=flat-square\n[license]: https://github.com/kentcdodds/babel-plugin-codegen/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: https://makeapullrequest.com\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/kentcdodds/babel-plugin-codegen/blob/master/CODE_OF_CONDUCT.md\n[emojis]: https://github.com/all-contributors/all-contributors#emoji-key\n[all-contributors]: https://github.com/all-contributors/all-contributors\n[all-contributors-badge]: https://img.shields.io/github/all-contributors/kentcdodds/babel-plugin-codegen?color=orange\u0026style=flat-square\n[bugs]: https://github.com/kentcdodds/babel-plugin-codegen/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aopen+sort%3Acreated-desc+label%3Abug\n[requests]: https://github.com/kentcdodds/babel-plugin-codegen/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement\n[good-first-issue]: https://github.com/kentcdodds/babel-plugin-codegen/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement+label%3A%22good+first+issue%22\n[glamorous]: https://github.com/paypal/glamorous\n[preval]: https://github.com/kentcdodds/babel-plugin-preval\n[codegen.macro]: https://www.npmjs.com/package/codegen.macro\n[babel-plugin-macros]: https://github.com/kentcdodds/babel-plugin-macros\n[macros-badge]: https://img.shields.io/badge/babel--macro-%F0%9F%8E%A3-f5da55.svg?style=flat-square\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":["JavaScript","TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fbabel-plugin-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fbabel-plugin-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fbabel-plugin-codegen/lists"}