-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow non-cell files name end with Cell #554
Conversation
9372e4e
to
fc58e3f
Compare
Thanks for this! I hadn't really considered that someone might name something else I wonder if we could be a bit more explicit about this, maybe using a pragma mark. Something like: |
@peterp I don't know if being explicit here is the best approach. It seems like something we could easily auto-detect, whether based on an default export or on whether a |
@mojombo Yeah, you're right. It does seem like an almost impossible set of circumstances that need to conspire that would make a person export QUERY, a default component and name something My hope is that 10 years from now someone does that, finds this comments, and it reaches #1 on Hacker News. And this is in no way to say that I don't agree with your suggestion. I just think it would be funny. |
2ba08f2
to
887b252
Compare
887b252
to
8f2ae2a
Compare
I just rebased this branch with master and had to run It would be great if this was included in the 0.7.0 release. |
@gfpacheco Gah! Apologies this didn’t make it into v0.7. Any luck with the Thanks again for your continuing contributions! |
Don't worry, it's an easy workaround, I just named my file |
Hey guys, it's still not working on canary, do I have to do anything else than upgrading? I just wanted to point out that I'm a total newbie when it comes to babel loader and plugin development, that said: I tried changing the files inside node_modules manually, adding I even saw that aside from the loader we also have a I tried the local development also without success. I just don't know what else to do. |
@gfpacheco Oh man, just a perfect storm of bad timing. First we missed including this in v0.7. Then our GH Action to auto-publish canaries broke today #588 So most likely the canary you've been using does not include the changes you need. I just manually released |
Still no luck. The changes are there, they just don't seem to have an effect, neither does anything I do to those files ( |
@gfpacheco I've fixed this over here: #597 |
I just came across this issue today when I wanted to create a component called
TableCell
, but got this error:Then I realized since my component name ends with
Cell
RedwoodJS was trying to make its cell magic.This PR addresses that by checking if there's already an
export default
in the file before processing with cell loader.