Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
serhiipalash opened this issue Dec 2, 2018 · 2 comments

Comments

@serhiipalash
Copy link

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!

@kentcdodds
Copy link
Owner

This issue is the same problem we're dealing with here: kentcdodds/babel-plugin-preval#19

The fundamental issue is that babel doesn't allow us to indicate cache dependencies of one file to another: babel/babel#8497

There's nothing we can do in this project to make that work I'm afraid.

Would you like to open a PR to add a note about this to the README please?

@TSMMark
Copy link

TSMMark commented Feb 21, 2020

Hey guys, firstly thanks @kentcdodds for this awesome package!

@serhiipalash mentioned cleaning the cache. What's the best way to clear out the babel cache and have changes take effect?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants