babel-plugin-codegen icon indicating copy to clipboard operation
babel-plugin-codegen copied to clipboard

πŸ’₯ Generate code at build-time

Results 9 babel-plugin-codegen issues
Sort by recently updated
recently updated
newest added

Hey Kent, thanks for this awesome plugin, been using it for years and it's really handy! Also saw you got in a car accident recently and I hope you're not...

**What**: Adds support for `codegen.require('module-name')` to load and codegen the main export of an npm module. Fixes #47. **Why**: I've created a reusable codegen which works great. However, once I...

I've created a reusable codegen which works great (thanks for the library!). However, once I published & consume the codegen as an [npm module (`@ceteio/next-layout-loader`)](https://github.com/ceteio/next-layout-loader), it no longer works: ```javascript...

- `babel-plugin-codegen` version: 3.0.0 - `node`version: 10.13.0 - `npm` (or `yarn`) version: 1.12.3 Plugin doesn't work if your Babel config is in `babel.config.js`, but all works fine if it is...

help wanted
needs investigation

- `babel-plugin-codegen` version: 4.1.4 - `node` version: v12.15.0 - `npm` version: 6.14.11 With these files: **index.js** ```js // @codegen module.exports = `console.log("hello world!")`; ``` **babel.config.js** ```js module.exports = { presets:...

- `babel-plugin-codegen` version: 3.0.0 - `node` version: 10.15.0 - `npm` (or `yarn`) version: yarn 1.13.0 - `babel`: 7.4.5 - `babel-plugin-macros`: 2.5.1 (required by another dep) Relevant code or config ```javascript...

Hi @kentcdodds ! I use this plugin with Expo/React Native and it works great! One problem is that code regeneration happens only on restarting Metro packager with cleaning the cache,...

- `babel-plugin-codegen` version: ^3.0.0 - `node` version: 10.12.0 - `npm` (or `yarn`) version: 6.4.1 Relevant code or config ```javascript // @codegen const hello = 'hello'; module.exports = ` export default...

bug
help wanted

- "codegen.macro": "^1.0.0", - node -v: v9.11.1 - yarn -v: 1.3.2 I'm generating variables so that my colleague who doesn't know how to code can write simple code now. [πŸ’–this...

help wanted