Skip to content

feat: decouple DevEnvironment and server#16460

Merged
patak-cat merged 10 commits intofeat/environment-apifrom
feat/environment-api-plugins-per-environment
Apr 19, 2024
Merged

feat: decouple DevEnvironment and server#16460
patak-cat merged 10 commits intofeat/environment-apifrom
feat/environment-api-plugins-per-environment

Conversation

@patak-cat
Copy link
Member

@patak-cat patak-cat commented Apr 18, 2024

Description

  • A ViteDevServer is no longer needed to create a DevEnvironment. This triggered a lot of changes to transformRequest and related functions
  • Per environment crawler
  • Per environment pending requests
  • environment.init()
  • Introduce ScanEnvironment, used in the optimizer scanner
  • Per environment plugins using { split(environment) { return MyPlugin(environment) }. We need a better name for split. Just a placeholder for now.

Start work to move fallback logic in transformRequest to a plugin. I reverted the change for now (leaving the code). We can check this in a future PR.

@bolt-new-by-stackblitz
Copy link

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

@patak-cat patak-cat marked this pull request as ready for review April 19, 2024 12:16
@patak-cat patak-cat merged commit 319b8e0 into feat/environment-api Apr 19, 2024
@patak-cat patak-cat deleted the feat/environment-api-plugins-per-environment branch April 19, 2024 12:19
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.

2 participants