-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
feat: base without trailing slash #10723
Merged
patak-dev
merged 22 commits into
vitejs:main
from
BenediktAllendorf:without-trailing-slash
Nov 12, 2022
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0cbe2fb
chore: added tests for base without trailing slash (e.g., "/foo")
BenediktAllendorf 62c588a
chore: remove enforcing trailing slash for base
BenediktAllendorf cbe04d5
chore: use joinUrlSegments() where necessary
BenediktAllendorf 3cfa091
chore: add stripBase() for handling bases with and without trailing s…
BenediktAllendorf 02b9ba8
Update packages/vite/src/node/plugins/importAnalysis.ts
BenediktAllendorf 6613ab1
Update packages/vite/src/node/plugins/importAnalysis.ts
BenediktAllendorf 3ea8891
chore: use stripBase more and fix bad calls to path.posix.join
benmccann 0a8ea2a
chore: don't duplicate test file
benmccann 99e0e9d
chore: merge main
benmccann d93cb6b
chore: leave trailing slash in resolved config per bluwy's comment
benmccann 4d78d6a
fix: get a couple tests passing
benmccann 3ce3ac3
fix: update package.json scripts
benmccann d1e9fea
fix: remove newly added broken tests
benmccann a4237c4
chore: cleanup package.json
benmccann a5efea6
feat: add rawBase field
benmccann 3d95beb
feat: use rawBase in base middleware
benmccann 777c81e
fix: use rawBase for tests and CLI output
benmccann 64edcfd
fix: make test more robust
benmccann 91f7023
chore: mark rawBase as internal
benmccann 301ff0b
docs: update docs
benmccann fa03d8c
chore: merge main
benmccann f47f642
fix: update recently added test
benmccann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let's mark
rawBase
as internal. I would prefer to have this option as you did here, but there was a push in the last team meeting to go there only when there is a real use case out of the Vite core middleware.