diff --git a/packages/start-plugin-core/src/dev-server-plugin/plugin.ts b/packages/start-plugin-core/src/dev-server-plugin/plugin.ts index 0634d4c14a8..3821a26ddae 100644 --- a/packages/start-plugin-core/src/dev-server-plugin/plugin.ts +++ b/packages/start-plugin-core/src/dev-server-plugin/plugin.ts @@ -10,23 +10,9 @@ declare global { } export function devServerPlugin(): Plugin { - // let config: UserConfig - let isTest = false - return { name: 'start-dev-ssr-plugin', - config(userConfig, { mode }) { - // config = userConfig - isTest = isTest ? isTest : mode === 'test' - // see https://vite.dev/config/shared-options.html#apptype - // this will prevent vite from injecting middlewares that we don't want - userConfig.appType = 'custom' - }, async configureServer(viteDevServer) { - if (isTest) { - return - } - // Extract the scripts that Vite plugins would inject into the initial HTML const templateHtml = `` const transformedHtml = await viteDevServer.transformIndexHtml(