Skip to content
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

Vite: Don't rebase absolute url()s #15275

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

philipp-spiess
Copy link
Member

Closes #15269

This PR fixes an issue where our Vite extension was rebasing absolute urls inside @import-ed files. We forgot to cover this when we implemented the URL rebasing.

Test Plan

We validated that this fixes the repro in #15269:

Screenshot 2024-12-02 at 18 07 35

Also added a unit test for this.

@philipp-spiess philipp-spiess requested a review from a team as a code owner December 2, 2024 17:11
@thecrypticace thecrypticace changed the title Vite: Don't rebase absolute url() Vite: Don't rebase absolute url()s Dec 2, 2024
@thecrypticace thecrypticace merged commit 667af25 into next Dec 2, 2024
1 check passed
@thecrypticace thecrypticace deleted the fix/dont-rebase-absolute-urls branch December 2, 2024 19:23
philipp-spiess added a commit that referenced this pull request Dec 3, 2024
I noticed uncommitted changes of #15275 on my local setup so here's the
updated changelog and the added unit test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URLs resolve incorrectly in subfolders
2 participants