-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Gatsby caching issue #11
Comments
Hey Robin
Check this thread for some workarounds. Cheers for giving twin a try :) |
Actually, This problem is come from babel macro itself, learn more babel-cache-problem |
You're right, that's an issue that we can't solve right now. |
Any updates on this? |
Not great news but I hit some major roadblocks and backed out. Without major structural code changes, I'm unsure if it's accomplishable. Firmly in the 'too hard' bucket for now. |
Hi @ben-rogerson -- just wanted to say hello and thanks for Twin, it's such a cool angle and gives our team everything we want. The For posterity I followed this thread to the underlying problem in this order: I haven't tried the Nodemon workaround mentioned in the first link, but it's from 2017 so not getting my hopes up. Anyway, we really want Twin as a team, so we're going to just go ahead and use it, despite the fact that we'll have to modify our develop script to run Let us know if you come up with any other workarounds to get this solved without waiting for the Babel team! For example, maybe it would be possible to cut a branch of Twin that installs Babel from that PR's branch, to see if it fixes it... |
Awesome to hear you're using twin 👍 I remember that thread tunnel - not too much at the end of it eh. Next project, I'll be looking at defeating the babel cache. In our discord back in March, Hippo took a deep dive and scouted out some potential fixes for Next.js, so I've got a good start point. |
Looks like babel is implementing a feature in v7.17.0 that allows plugins to indicate dependencies on external files. Closing this issue for now due to age - I'll create a new issue soon when this update is testable across all frameworks. |
Hey!
I'm using twin.macro within a Gatsby site.
My setup is basically the same as in the readme.
I've created a custom tailwind.config.js and changed a few colors.
However, the new colors are only picked up after I manually delete the node_modules/.cache folder.
I've got no experience in using Babel macros but shouldn't the cache be cleared -- at least -- when I restart my dev server?
Or how is changing the tailwind config supposed to work?
Thank you for your amazing work!
The text was updated successfully, but these errors were encountered: