kentcdodds / kentcdodds/babel-plugin-codegen

In React Native code generation happens only on restarting server with cleaning the cache

Open
#19 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
347
Forks
27
PR merge metrics
No merged PRs in 30d

Description

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, and never on file change. Do you have any idea why it works like this? Maybe you can point me on some article and I can create pr then. I am new with Babel plugins and would appreciate any help. Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in an Expo/React Native project, changing a source file while the Metro packager is running. Inspect the plugin's code-generation behavior and its interaction with the Metro packager. Done means generated code updates after file changes without restarting Metro or clearing its cache.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.