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

feat: decouple DevEnvironment and server #16460

Merged

Conversation

patak-dev
Copy link
Member

@patak-dev patak-dev 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.

Copy link

stackblitz bot commented Apr 18, 2024

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

@patak-dev patak-dev marked this pull request as ready for review April 19, 2024 12:16
@patak-dev patak-dev merged commit 319b8e0 into feat/environment-api Apr 19, 2024
12 checks passed
@patak-dev patak-dev 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