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

fix(server): use options argument in caching of transformRequest calls #5391

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Oct 22, 2021

The current implementation has a nasty side effect of treating SSR transforms as equivalent to browser transforms, which is obviously wrong.

I also removed a debugTransform call, as it's a little noisy when vite:import-analysis calls transformRequest for every static import in the module graph.

@aleclarson aleclarson added the p5-urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) label Oct 22, 2021
@antfu antfu merged commit 27b7f90 into vitejs:main Nov 2, 2021
@aleclarson aleclarson deleted the fix/transformRequest-cache branch February 25, 2022 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p5-urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants