vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.8k stars 6.22k forks source link

feat: expose createServerModuleRunnerTransport #18730

Open sheremet-va opened 4 days ago

sheremet-va commented 4 days ago

Description

Since we can't just provide a fetchModule function anymore, let's expose the helper.

sapphi-red commented 4 days ago

I think we need to expose NormalizedServerHotChannel type. Otherwise, users would have to use as any. https://github.com/vitejs/vite/blob/c45576ab18c42ce950ba76f0f389ad3dde2ab012/packages/vite/src/node/ssr/runtime/serverModuleRunner.ts#L131