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: introduce RunnableDevEnvironment #18190

Merged
merged 10 commits into from
Sep 27, 2024
Prev Previous commit
Next Next commit
fix: allow any environment in isRunnableDevEnvironment
  • Loading branch information
sheremet-va committed Sep 26, 2024
commit dd6e3d5d79062f0125899f6c5d493cd85355d3df
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { DevEnvironmentContext } from '../environment'
import { DevEnvironment } from '../environment'
import { createServerModuleRunner } from '../../ssr/runtime/serverModuleRunner'
import { createServerHotChannel } from '../hmr'
import type { Environment } from '../../environment'

export function createRunnableDevEnvironment(
name: string,
Expand All @@ -22,7 +23,7 @@ export interface RunnableDevEnvironmentContext extends DevEnvironmentContext {
}

export function isRunnableDevEnvironment(
environment: DevEnvironment,
environment: Environment,
): environment is RunnableDevEnvironment {
return environment instanceof RunnableDevEnvironment
}
Expand Down
Loading