Skip to content

Conversation

@sheremet-va
Copy link
Member

Description

Not sure when this happened, but the order of arguments in posixResolve is not correct, it always returns the from value because it's always absolute.

This was hard to detect because it's almost always irrelevant. You need a file that was already generated from another file.

@sheremet-va sheremet-va marked this pull request as ready for review October 18, 2025 08:55
@sheremet-va
Copy link
Member Author

sheremet-va commented Oct 18, 2025

Looking for a way to support this in all Vite versions from my side since I doubt it makes a lot of sense to backport this to every minor.

EDIT: Probably, will keep this until we bump the version: vitest-dev/vitest#8736

@sheremet-va sheremet-va changed the title fix(module-runner): resolve resolvedSources correctly fix(module-runner): resolve resolvedSources correctly Oct 18, 2025
@sapphi-red sapphi-red added the p2-edge-case Bug, but has workaround or limited in scope (priority) label Oct 19, 2025
@sapphi-red sapphi-red merged commit c4f6039 into vitejs:main Oct 20, 2025
16 checks passed
@sheremet-va sheremet-va deleted the fix/resolve-sources-vite branch October 21, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-edge-case Bug, but has workaround or limited in scope (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants