You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using babel macros would be handy for this: it allows babel to generate require statements you need at transpilation time. The advantage would be to avoid running the cli everytime you want to update your story list.
@slorber iirc, using macros creates a problem that you have brought up previously elsewhere: facebook/metro#105 Has anything changed that would allow this now?
@karanjthakkar actually you are right using macros can be a problem due to metro caching. I didn't really dig more into this problem or the getCacheKey option so not sure macros are yet suitable for this problem
Hi,
Using babel macros would be handy for this: it allows babel to generate require statements you need at transpilation time. The advantage would be to avoid running the cli everytime you want to update your story list.
Here is an example:
https://github.com/kentcdodds/import-all.macro
The text was updated successfully, but these errors were encountered: