Repository navigation
feat: add base option to import.meta.glob #20163
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fd262c0
feat: parse base path in import.meta.glob
hakshu25 09a3e9c
feat: add support for custom base path in import.meta.glob
hakshu25 6b17fd7
test: add integration test for base option of glob-import
hakshu25 ae89d14
feat: add validation to check if the base option doesn't start with '!'
hakshu25 5db0640
fix: resolved relative paths to options.base
hakshu25 f6d73df
docs: add usage of base path for glob import
hakshu25 f206609
docs: remove one example
sapphi-red 7f0f5e7
fix: ensure glob import keys start with './' when using base option
hakshu25 1cd16f3
docs: fix glob import paths to use base directory
hakshu25 51e76be
fix: ensure glob import keys start with './' for base directory in gl…
hakshu25 b07d814
feat: support alias in glob with options.base
hakshu25 2ec1175
feat: support relative glob in virtual modules
hakshu25 76dc01e
test: fix test to treat as base instead of prefix
hakshu25 500cb14
docs: fix glob import example to treat as base instead of prefix
hakshu25 f6c657d
fix: changed to update dir to glob to act as base instead of prefix
hakshu25 1a26072
test: fix e2e test glob in base option of import glob
hakshu25 e69c80b
chore: merge main
patak-cat e384e64
chore: remove base+alias related code and clarify docs
patak-cat 08a1cbc
chore: update
patak-cat 50b5723
chore: add test case
patak-cat 8c3f886
chore: update snapshot
patak-cat 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.