-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
fix: import with query with exports/browser field #7098
fix: import with query with exports/browser field #7098
Conversation
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.
Oops sorry didn't mean to approve this 😅
@@ -772,7 +777,7 @@ function packageEntryFailure(id: string, details?: string) { | |||
|
|||
function resolveExports( | |||
pkg: PackageData['data'], | |||
key: string, | |||
keyWithQuery: string, |
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.
I think it's nice if we can leave this back as key
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.
LGTM!
Friendly poke to merge 🙇. Is there anything left after approval? |
Update to Vite which includes vitejs/vite#7098
Description
The previous PR (#7073) did fix for cases like
.png?url
which becomes url regardless of?url
, but did not work with other cases.This PR fix for those. For example,
.json?url
,.wasm?url
. (I overlooked.json?url
was broken...)fix #6725
fix #7281
Additional context
refs #7097
Thanks @MadLittleMods for mentioning.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).