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: init dev ssr optimizer on server init #15561

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

patak-dev
Copy link
Member

@patak-dev patak-dev commented Jan 10, 2024

Description

We are starting warmup of ssr files using transformRequest on server init. The dev ssr optimizer was started lazily on ssrLoadModule to avoid blocking the server start. The esbuild run should be fast enough for this move to not be a regression in DX.

Edit: moved the init to be lazy in transformRequest

vite-node isn't using ssrLoadModule in SSR transform mode so the deps optimizer wasn't working properly in Vitest either. See:

cc @sheremet-va


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Copy link

stackblitz bot commented Jan 10, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev added p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) feat: ssr feat: deps optimizer Esbuild Dependencies Optimization labels Jan 10, 2024
@patak-dev patak-dev added this to the 5.1 milestone Jan 10, 2024
@patak-dev patak-dev merged commit db28b92 into main Jan 10, 2024
16 checks passed
@patak-dev patak-dev deleted the fix/deps-optimization-during-ssr branch January 10, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: deps optimizer Esbuild Dependencies Optimization feat: ssr p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants