-
Notifications
You must be signed in to change notification settings - Fork 922
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
File builder url refactor #1454
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/lg70dgcvf |
Sorry for the delay on reviewing, but what problem does this address? If I missed a discussion or issue # I’m happy to read up about it; I‘m just out of context on the improvement/fix here. |
Ah that‘s right! Thanks for reminding me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me! Sorry about the merge conflicts; I believe that‘s a product of the slow review. But what‘s here looks great.
@high1 is attempting to deploy a commit to the Pika Team on Vercel. A member of the Team first needs to authorize it. |
@high1 Thanks! I can merge this whenever you’re ready. Is this good to go? |
Yeah, so what Fred outlined in #1278 is really glossing over a lot of weirdness that we‘ve had to do to resolve URLs. This is something that you‘ll want to pay very close attention to the snapshots on, as every In general, I think I‘d search the
Both are pretty messy code that‘s juggling Unix and Windows paths trying to resolve files. I think in general the #1278 refactor is of unclear scope, and that‘s hard, but if I had to pick a center, I‘d say the 2 functions here are at the root of a number of bugs we‘ve had to fix in the past, probably because we‘re doing “too much“ work there. In other words, there aren‘t any known issues at the moment, but as you can see, path resolution logic in Snowpack is currently way more verbose and complicated than it probably needs to be, and we‘re trying to just clean house here. |
Changes
This starts the refactor from string to URLs beginning with FileBuilder.
Testing
Test were ran locally with same results before and after the PR.
Docs
Refactoring only