-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Implements build.format: 'preserve' #9764
Conversation
🦋 Changeset detectedLatest commit: 7b929e2 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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 PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
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 looks fine to 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.
Can you add more test cases with:
trailingSlash
set toalways
base
set to something
@ematipico I added a test for base. I don't think |
@matthewp that's true and I agree with you, although we added a new branching logic inside the function So for the sake of code coverage, I'd like to see at least one test that covers this case. |
@ematipico The |
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Regarding discussion on trailingSlash note current issue impacting dev server vs. build behaviour: #9674 |
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.
Thank you @matthewp ! Happy to merge it
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.
Thanks @matthewp ! I left a suggestion for each of the changeset and the docs to see if we could make this super explicit about what's going on. Obviously, check that this is correct, but see if my suggestions make sense, or give you ideas for more explicitly laying out the difference (especially between file
and preserve
, which took the most work to really make clear, I think.)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Hey @sarah11918, I reviewed your suggestions, and they seemed very sound to me. I merged them! Thank you |
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.
Just correcting three tiny punctuation/conjunction nits, but approved by docs! 🥳
Edits look good to me, thanks @sarah11918 ! |
Changes
build.format: 'preserve'
option to preserve the file system structure insrc/
over indist/
Testing
New test cases added
Docs