Skip to content

Comments

fix: init dev ssr optimizer on server init#15561

Merged
patak-dev merged 2 commits intomainfrom
fix/deps-optimization-during-ssr
Jan 10, 2024
Merged

fix: init dev ssr optimizer on server init#15561
patak-dev merged 2 commits intomainfrom
fix/deps-optimization-during-ssr

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

@bolt-new-by-stackblitz
Copy link

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
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